punchbowl.prefect#
Attributes#
Classes#
Functions#
|
Run on task completion during debug mode. |
|
Run if a punch_task fails. |
|
Prefect task that does PUNCH special things. |
|
Prefect flow that does PUNCH special things. |
|
Make wrapped functions have a .fn attribute like Prefect Flows and Tasks. |
|
Determine if we're running under Prefect. |
|
Get a logger, which will be the Prefect logger if we're running under Prefect. |
Module Contents#
- punchbowl.prefect.completion_debugger(task: prefect.Task, task_run: prefect.client.schemas.objects.TaskRun, state: prefect.states.State) None[source]#
Run on task completion during debug mode.
- punchbowl.prefect.failure_hook(task: prefect.Task, task_run: prefect.client.schemas.objects.TaskRun, state: prefect.states.State) None[source]#
Run if a punch_task fails.
- punchbowl.prefect.punch_task(func: collections.abc.Callable | None = None, **kwargs: Any) prefect.Task | collections.abc.Callable[source]#
Prefect task that does PUNCH special things.
- punchbowl.prefect.punch_flow(func: collections.abc.Callable | None = None, **kwargs: Any) prefect.Flow | collections.abc.Callable[source]#
Prefect flow that does PUNCH special things.
- punchbowl.prefect._compatability_decorator(func: collections.abc.Callable) collections.abc.Callable[source]#
Make wrapped functions have a .fn attribute like Prefect Flows and Tasks.
- punchbowl.prefect.detect_if_running_in_prefect() bool[source]#
Determine if we’re running under Prefect.
- punchbowl.prefect.get_logger() logging.Logger[source]#
Get a logger, which will be the Prefect logger if we’re running under Prefect.
- punchbowl.prefect._debug_mode#