db_methods
persistence.db_methods
add_object_to_db
add_object_to_db(obj, make_commit=True)
Adds object to database and makes commit
Source code in yaptide/persistence/db_methods.py
12 13 14 15 16 |
|
delete_object_from_db
delete_object_from_db(obj, make_commit=True)
Deletes object from database and makes commit
Source code in yaptide/persistence/db_methods.py
19 20 21 22 23 |
|
fetch_all_clusters
fetch_all_clusters()
Fetches all clusters
Source code in yaptide/persistence/db_methods.py
155 156 157 158 |
|
fetch_batch_simulation_by_job_id
fetch_batch_simulation_by_job_id(job_id)
Fetches batch simulation by job id
Source code in yaptide/persistence/db_methods.py
72 73 74 75 |
|
fetch_batch_tasks_by_sim_id
fetch_batch_tasks_by_sim_id(sim_id)
Fetches batch tasks by simulation
Source code in yaptide/persistence/db_methods.py
112 113 114 115 |
|
fetch_celery_simulation_by_job_id
fetch_celery_simulation_by_job_id(job_id)
Fetches celery simulation by job id
Source code in yaptide/persistence/db_methods.py
66 67 68 69 |
|
fetch_celery_tasks_by_sim_id
fetch_celery_tasks_by_sim_id(sim_id)
Fetches celery tasks by simulation
Source code in yaptide/persistence/db_methods.py
106 107 108 109 |
|
fetch_cluster_by_id
fetch_cluster_by_id(cluster_id)
Fetches cluster by id
Source code in yaptide/persistence/db_methods.py
161 162 163 164 |
|
fetch_estimator_by_sim_id_and_est_name
fetch_estimator_by_sim_id_and_est_name(sim_id, est_name)
Fetches estimator by simulation id and estimator name
Source code in yaptide/persistence/db_methods.py
137 138 139 140 |
|
fetch_estimator_names_by_job_id
fetch_estimator_names_by_job_id(job_id)
Fetches estimators names by job id Returns a list of estimator names if the simulation exists, or None if no simulation is found for the provided job ID.
Source code in yaptide/persistence/db_methods.py
124 125 126 127 128 129 130 131 132 133 134 |
|
fetch_estimators_by_sim_id
fetch_estimators_by_sim_id(sim_id)
Fetches estimators by simulation id
Source code in yaptide/persistence/db_methods.py
118 119 120 121 |
|
fetch_input_by_sim_id
fetch_input_by_sim_id(sim_id)
Fetches input by simulation id
Source code in yaptide/persistence/db_methods.py
167 168 169 170 |
|
fetch_keycloak_user_by_username
fetch_keycloak_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
44 45 46 47 |
|
fetch_logfiles_by_sim_id
fetch_logfiles_by_sim_id(sim_id)
Fetches logfiles by simulation id
Source code in yaptide/persistence/db_methods.py
173 174 175 176 |
|
fetch_page_by_est_id_and_page_number
fetch_page_by_est_id_and_page_number(est_id, page_number)
Fetches page by estimator id and page number
Source code in yaptide/persistence/db_methods.py
149 150 151 152 |
|
fetch_pages_by_estimator_id
fetch_pages_by_estimator_id(est_id)
Fetches pages by estimator id
Source code in yaptide/persistence/db_methods.py
143 144 145 146 |
|
fetch_simulation_by_job_id
fetch_simulation_by_job_id(job_id)
Fetches simulation by job id
Source code in yaptide/persistence/db_methods.py
50 51 52 53 54 |
|
fetch_simulation_by_sim_id
fetch_simulation_by_sim_id(sim_id)
Fetches simulation by sim id
Source code in yaptide/persistence/db_methods.py
78 79 80 81 82 |
|
fetch_simulation_id_by_job_id
fetch_simulation_id_by_job_id(job_id)
Fetches simulation_id by job_id for both Celery and Batch simulations. Returns simulation_id if simulation exists, or None if no simulation is found.
Source code in yaptide/persistence/db_methods.py
57 58 59 60 61 62 63 |
|
fetch_simulations_by_user_id
fetch_simulations_by_user_id(user_id)
Fetches simulations by user id
Source code in yaptide/persistence/db_methods.py
85 86 87 88 89 |
|
fetch_task_by_sim_id_and_task_id
fetch_task_by_sim_id_and_task_id(sim_id, task_id)
Fetches task by simulation id and task id
Source code in yaptide/persistence/db_methods.py
92 93 94 95 96 |
|
fetch_tasks_by_sim_id
fetch_tasks_by_sim_id(sim_id)
Fetches tasks by simulation id
Source code in yaptide/persistence/db_methods.py
99 100 101 102 103 |
|
fetch_user_by_id
fetch_user_by_id(user_id)
Fetches user by id
Source code in yaptide/persistence/db_methods.py
31 32 33 34 35 |
|
fetch_yaptide_user_by_username
fetch_yaptide_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
38 39 40 41 |
|
make_commit_to_db
make_commit_to_db()
Makes commit
Source code in yaptide/persistence/db_methods.py
26 27 28 |
|
update_simulation_state
update_simulation_state(simulation, update_dict)
Updates simulation state and makes commit
Source code in yaptide/persistence/db_methods.py
185 186 187 188 189 190 |
|
update_task_state
update_task_state(task, update_dict)
Updates task state and makes commit
Source code in yaptide/persistence/db_methods.py
179 180 181 182 |
|