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
68 69 70 71 72 73 |
|
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
55 56 57 58 59 60 61 62 63 64 65 |
|
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
41 42 43 44 45 46 47 48 49 50 51 52 |
|
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 36 37 38 |
|
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
76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|