scheduled_tasks
Module with functions used to execute scheduled tasks.
See https://panel.holoviz.org/how_to/callbacks/schedule.html for details.
Modules:
Name | Description |
---|---|
cloud |
Module with functions to interact with GCP storage service. |
core |
|
models |
Module with database tables definitions. |
Functions:
Name | Description |
---|---|
clean_files_db |
Return a callable object for cleaning temporary tables and files. |
reset_guest_user_password |
Return a callable object for resetting guest user password. |
upload_db_to_gcp_storage |
Return a callable object for uploading database to google cloud storage. |
Attributes:
Name | Type | Description |
---|---|---|
log |
Logger
|
Module logger. |
clean_files_db
clean_files_db(config: DictConfig) -> callable
Return a callable object for cleaning temporary tables and files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
DictConfig
|
Hydra configuration dictionary. |
required |
Returns:
Type | Description |
---|---|
callable
|
function to be scheduled. |
Source code in dlunch/scheduled_tasks.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
reset_guest_user_password
reset_guest_user_password(config: DictConfig) -> callable
Return a callable object for resetting guest user password.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
DictConfig
|
Hydra configuration dictionary. |
required |
Returns:
Type | Description |
---|---|
callable
|
function to be scheduled. |
Source code in dlunch/scheduled_tasks.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
upload_db_to_gcp_storage
upload_db_to_gcp_storage(
config: DictConfig, **kwargs
) -> callable
Return a callable object for uploading database to google cloud storage.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config
|
DictConfig
|
Hydra configuration dictionary. |
required |
Returns:
Type | Description |
---|---|
callable
|
function to be scheduled. |
Source code in dlunch/scheduled_tasks.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|