utils_database
create_db_tasks_and_update_task_group_async(*, task_group_id, task_list, db)
async
¶
Create a TaskGroupV2
with N TaskV2
s, and insert them into the database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_group_id |
int
|
ID of an existing |
required |
task_list |
list[TaskCreateV2]
|
List of |
required |
db |
AsyncSession
|
Synchronous database session |
required |
Returns:
Type | Description |
---|---|
TaskGroupV2
|
Updated |
Source code in fractal_server/tasks/v2/utils_database.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
create_db_tasks_and_update_task_group_sync(*, task_group_id, task_list, db)
¶
Create a TaskGroupV2
with N TaskV2
s, and insert them into the database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_group_id |
int
|
ID of an existing |
required |
task_list |
list[TaskCreateV2]
|
List of |
required |
db |
Session
|
Synchronous database session |
required |
Returns:
Type | Description |
---|---|
TaskGroupV2
|
Updated |
Source code in fractal_server/tasks/v2/utils_database.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|