Class Runtime
Core class of ORCO.
Declaration
Documentation
Core class of ORCO.
It manages database with results and starts computations
For SQLite:
>>> runtime = Runtime("sqlite:///path/to/dbfile.db")
For Postgress:
>>> runtime = Runtime("postgresql://<USERNAME>:<PASSWORD>@<HOSTNAME>/<DATABASE>")
Methods
def __exit__(self, exc_type, exc_val, exc_tb) Declaration
def __exit__(
self,
exc_type,
exc_val,
exc_tb
):
def __init__(self, db_path, global_builders=True, executor_name=None, n_processes=None) Declaration
def __init__(
self,
db_path,
global_builders=True,
executor_name=None,
n_processes=None
):
Declaration
def add_runner(
self,
name,
runner
):
def archive(self, job, archive_inputs=False) Declaration
def archive(
self,
job,
archive_inputs=False
):
Declaration
def archive_many(
self,
jobs,
archive_inputs=False
):
Declaration
def compute_many(
self,
jobs
):
def drop(self, job, drop_inputs=False) Declaration
def drop(
self,
job,
drop_inputs=False
):
Declaration
def drop_builder(
self,
builder_name,
drop_inputs=False
):
Declaration
def drop_many(
self,
jobs,
drop_inputs=False
):
Declaration
def free_many(
self,
jobs
):
Declaration
def get_builder(
self,
builder_name
):
Declaration
def get_state(
self,
job
):
Declaration
def has_builder(
self,
builder_name
):
Declaration
def insert(
self,
job,
value
):
Declaration
def read_jobs(
self,
job
):
Declaration
def read_many(
self,
jobs
):
Declaration
def register_builder(
self,
builder
):
def serve(self, port=8550, debug=False, testing=False, nonblocking=False) Declaration
def serve(
self,
port=8550,
debug=False,
testing=False,
nonblocking=False
):
Declaration
def start_executor(
self):
Declaration
def try_read(
self,
job,
reattach=False
):
Declaration
def upgrade_builder(
self,
builder,
upgrade_fn
):
Reexports