Utils database
| FUNCTION | DESCRIPTION |
|---|---|
create_db_tasks_and_update_task_group_async |
Create a |
create_db_tasks_and_update_task_group_sync |
Create a |
Classes¶
Functions:¶
create_db_tasks_and_update_task_group_async(*, task_group_id, task_list, db)
async
¶
Create a TaskGroupV2 with N TaskV2s, and insert them into the database.
| PARAMETER | DESCRIPTION |
|---|---|
|
ID of an existing
TYPE:
|
|
List of
TYPE:
|
|
Synchronous database session
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TaskGroupV2
|
Updated |
Source code in fractal_server/tasks/v2/utils_database.py
create_db_tasks_and_update_task_group_sync(*, task_group_id, task_list, db)
¶
Create a TaskGroupV2 with N TaskV2s, and insert them into the database.
| PARAMETER | DESCRIPTION |
|---|---|
|
ID of an existing
TYPE:
|
|
List of
TYPE:
|
|
Synchronous database session
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TaskGroupV2
|
Updated |