rs_workflows/utils/prefect.md¶
Utilities for working with Prefect (run logger and variables).
get_logger(name=None)
¶
Return the Prefect run logger when called from a Prefect flow or task run, otherwise a standard logger (e.g. when the workflow code is used outside of Prefect).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str | None
|
name of the standard logger. Default: module name of the caller. |
None
|
Source code in docs/rs-client-libraries/rs_workflows/utils/prefect.py
update_prefect_variable(variable_name, updates)
async
¶
Merge updates into a Prefect variable and verify that they were persisted.