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
13 14 15 16 17 |
|
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
20 21 22 23 24 |
|
fetch_all_clusters
fetch_all_clusters()
Fetches all clusters
Source code in yaptide/persistence/db_methods.py
184 185 186 187 |
|
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
73 74 75 76 |
|
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
113 114 115 116 |
|
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
67 68 69 70 |
|
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
107 108 109 110 |
|
fetch_cluster_by_id
fetch_cluster_by_id(cluster_id)
Fetches cluster by id
Source code in yaptide/persistence/db_methods.py
190 191 192 193 |
|
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
139 140 141 142 |
|
fetch_estimator_by_sim_id_and_file_name
fetch_estimator_by_sim_id_and_file_name(sim_id, file_name)
Fetches estimator by simulation id and estimator name
Source code in yaptide/persistence/db_methods.py
145 146 147 148 |
|
fetch_estimator_id_by_sim_id_and_est_name
fetch_estimator_id_by_sim_id_and_est_name(sim_id, est_name)
Fetches estimator_id by simulation id and estimator name
Source code in yaptide/persistence/db_methods.py
151 152 153 154 |
|
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
125 126 127 128 129 130 131 132 133 134 135 136 |
|
fetch_estimators_by_sim_id
fetch_estimators_by_sim_id(sim_id)
Fetches estimators by simulation id, sorted by id
Source code in yaptide/persistence/db_methods.py
119 120 121 122 |
|
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
196 197 198 199 |
|
fetch_keycloak_user_by_username
fetch_keycloak_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
45 46 47 48 |
|
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
202 203 204 205 |
|
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
163 164 165 166 |
|
fetch_pages_by_est_id_and_page_numbers
fetch_pages_by_est_id_and_page_numbers(
est_id, page_numbers
)
Fetches page by estimator id and page number
Source code in yaptide/persistence/db_methods.py
169 170 171 172 173 |
|
fetch_pages_by_estimator_id
fetch_pages_by_estimator_id(est_id)
Fetches pages by estimator id, sorted by page number
Source code in yaptide/persistence/db_methods.py
157 158 159 160 |
|
fetch_pages_metadata_by_est_id
fetch_pages_metadata_by_est_id(est_id)
Fetches estimator by simulation id and estimator name, sorted by page number
Source code in yaptide/persistence/db_methods.py
176 177 178 179 180 181 |
|
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
51 52 53 54 55 |
|
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
79 80 81 82 83 |
|
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
58 59 60 61 62 63 64 |
|
fetch_simulations_by_user_id
fetch_simulations_by_user_id(user_id)
Fetches simulations by user id, sorted by id
Source code in yaptide/persistence/db_methods.py
86 87 88 89 90 |
|
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
93 94 95 96 97 |
|
fetch_tasks_by_sim_id
fetch_tasks_by_sim_id(sim_id)
Fetches tasks by simulation id, sorted by task_id
Source code in yaptide/persistence/db_methods.py
100 101 102 103 104 |
|
fetch_user_by_id
fetch_user_by_id(user_id)
Fetches user by id
Source code in yaptide/persistence/db_methods.py
32 33 34 35 36 |
|
fetch_yaptide_user_by_username
fetch_yaptide_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
39 40 41 42 |
|
make_commit_to_db
make_commit_to_db()
Makes commit
Source code in yaptide/persistence/db_methods.py
27 28 29 |
|
update_simulation_state
update_simulation_state(simulation, update_dict)
Updates simulation state and makes commit
Source code in yaptide/persistence/db_methods.py
214 215 216 217 218 219 |
|
update_task_state
update_task_state(task, update_dict)
Updates task state and makes commit
Source code in yaptide/persistence/db_methods.py
208 209 210 211 |
|