manage_tasks
celery.utils.manage_tasks
get_job_results
get_job_results(job_id)
Returns simulation results
Source code in yaptide/celery/utils/manage_tasks.py
65 66 67 68 69 70 |
|
get_job_status
get_job_status(merge_id, celery_ids)
Returns simulation state, results are not returned here Simulation may consist of multiple tasks, so we need to check all of them
Source code in yaptide/celery/utils/manage_tasks.py
52 53 54 55 56 57 58 59 60 61 62 |
|
get_task_status
get_task_status(job_id, state_key)
Gets status of each task in the workflow
Source code in yaptide/celery/utils/manage_tasks.py
38 39 40 41 42 43 44 45 46 47 48 49 |
|
run_job
run_job(
files_dict,
update_key,
simulation_id,
ntasks,
celery_ids,
sim_type="shieldhit",
)
Runs asynchronous simulation job
Source code in yaptide/celery/utils/manage_tasks.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
translate_celery_state_naming
translate_celery_state_naming(job_state)
Function translating celery states' names to ones used in YAPTIDE
Source code in yaptide/celery/utils/manage_tasks.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|