ConfigParams
Config values send to the task
Functions
Returns the value of a parameter by its name.
This is different from get method. If the param doesn't exist or its value is None, it returns the default_value. It considers None as not defined. The get method only returns the default value if the param does not exists. It considers None as defined
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
param_name | str | ||
default_value | Any |
Return type:
Any |
Special method to update the config during the task run. The update is directly saved in the database /!\ To use with caution, only when you know what you are doing /!
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
config | Config |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
config_model_id | str |
Set the value of a parameter by its name.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
param_name | str | ||
value | Any | The value of the parameter |
Test if a parameter exists and is not none
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
param_name | str |
Return type:
bool |
Create a config params from a config
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
config | Config |
Return type:
ConfigParams |