prefect_kubernetes.flows
A module to define flows interacting with Kubernetes resources.
Functions
run_namespaced_job
kubernetes_job: TheKubernetesJobblock that specifies the job to run.print_func: A function to print the logs from the job pods.
- A dict of logs from each pod in the job, e.g.
{'pod_name': 'pod_log_str'}.
RuntimeError: If the created Kubernetes job attains a failed status.
run_namespaced_job_async
kubernetes_job: TheKubernetesJobblock that specifies the job to run.print_func: A function to print the logs from the job pods.
- A dict of logs from each pod in the job, e.g.
{'pod_name': 'pod_log_str'}.
RuntimeError: If the created Kubernetes job attains a failed status.