Mycelium

The mycelium is the data structure that stores everython related to the BLUMYCELIUM application.

Mycelium

class blumycelium.mycelium.ArangoMycelium(connection, name)[source]

docstring for ArangoMycelium. A mycelium over ArangoDB

complete_job(job_id)[source]

mark a job as successful

drop()[source]

delete all documents in the mycelium

drop_jobs()[source]

delete all information related to jobs

get_job(job_id)[source]

get a job

get_job_parameters(job_id)[source]

return the parameters for a job

get_job_status(job_id)[source]

return the status of a job

get_jobs(elf_uid: str, all_jobs=False, status_restriction=['pending'])[source]

return all jobs for an elf

get_result(result_id)[source]

return the result of a job

init(init_db=False, users_to_create=None)[source]

init_db: initialise the database users_to_create: list of dicts {username, password}

is_job_ready(job_id)[source]

return True if the job is ready to run

push_job(job)[source]

push a job to the mycelium

register_job_failure(exc_type, exc_value, exc_traceback, job_id)[source]

register a job failure

register_machine_elf(machine_elf, store_source)[source]

register and elf in the mycellium

start_job(job_id)[source]

mark a job as running

store_results(job_id, results: dict)[source]

store the results of a job

update_job_status(job_id, status)[source]

update the status of a job