ciaran
05/28/2021, 2:23 PMFabrice Toussaint
05/28/2021, 2:40 PMciaran
05/28/2021, 2:41 PMFabrice Toussaint
05/28/2021, 2:41 PMciaran
05/28/2021, 2:42 PMFabrice Toussaint
05/28/2021, 2:42 PMKevin Kho
ciaran
05/28/2021, 2:46 PMTyler Wanner
05/28/2021, 9:31 PMTyler Wanner
05/28/2021, 9:35 PMTyler Wanner
05/28/2021, 9:37 PMciaran
06/01/2021, 10:17 AMDELETE_FINISHED_JOBS flag does the ticket for the Prefect Job @Tyler Wanner thanks!
My next challenge, should you wish to lose some hair, is how do I do this for the Dask containers my flow spins off?
That's where our real pain points are. Trying to find the container for the jobs that ran as our errors are usually with Dask.ciaran
06/01/2021, 10:32 AMflow_run_id labelciaran
06/01/2021, 10:32 AMciaran
06/01/2021, 10:58 AMflow tag is one I made, I wonder if I can access the flow runs ID to define this in my DaskExecutor KubeCluster configciaran
06/01/2021, 2:51 PMflow_run_id for something like:
DaskExecutor(
cluster_class="dask_kubernetes.KubeCluster",
cluster_kwargs={
"pod_template": make_pod_spec(
image=os.environ["AZURE_BAKERY_IMAGE"],
labels={"flow": flow_name},
memory_limit=None,
memory_request=None,
env={
"AZURE_STORAGE_CONNECTION_STRING": os.environ[
"FLOW_STORAGE_CONNECTION_STRING"
]
},
)
},
adapt_kwargs={"maximum": 10},
)
? Currently that flow tag is defined in the flows .py file, but I guess trying to resolve flow_run_id is another kettle of fish?Tyler Wanner
06/01/2021, 11:16 PMciaran
06/02/2021, 12:25 PMciaran
06/02/2021, 12:25 PMTyler Wanner
06/04/2021, 2:08 AMciaran
06/04/2021, 10:34 AMciaran
06/04/2021, 11:26 AMTyler Wanner
06/04/2021, 2:44 PM