billowy-church-83438
09/18/2024, 8:00 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
on_failure
argument⦠are you looking for a finally
?billowy-church-83438
09/19/2024, 12:11 AMbefore registration is the place to do it,yeah, we can āforceā users to specify that in the DSL. but what we are looking for is to inject that task/node without users explictly write it in DSL.
billowy-church-83438
09/19/2024, 12:11 AMfinally
?
Sort of.billowy-church-83438
09/19/2024, 12:11 AMbillowy-church-83438
09/19/2024, 12:13 AMbillowy-church-83438
09/19/2024, 12:16 AMflytekit recently added anyou mean this PR: https://github.com/flyteorg/flytekit/pull/840?argumentā¦on_failure
thankful-minister-83577
thankful-minister-83577
billowy-church-83438
09/19/2024, 12:24 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:26 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:29 AMthankful-minister-83577
thankful-minister-83577
billowy-church-83438
09/19/2024, 12:32 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:33 AMthankful-minister-83577
delete
as part of success. not sure if this is in-scope for the agent interface⦠and delete will need to be idempotent ofc.thankful-minister-83577
billowy-church-83438
09/19/2024, 12:37 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:41 AMbillowy-church-83438
09/19/2024, 12:43 AMbillowy-church-83438
09/19/2024, 12:44 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:47 AMbillowy-church-83438
09/19/2024, 12:48 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:49 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:49 AMbillowy-church-83438
09/19/2024, 12:50 AMget
is only invoked before task is succeeded
once hte task āSucceededā, the get
is not called againthankful-minister-83577
thankful-minister-83577
billowy-church-83438
09/19/2024, 12:51 AMthankful-minister-83577
thankful-minister-83577
billowy-church-83438
09/19/2024, 12:52 AMbillowy-church-83438
09/19/2024, 12:52 AMbillowy-church-83438
09/19/2024, 12:53 AMget
call might work.
basically I marked the task 1 never succeeding, and so the get
call will always be invoked.
in the get
call, I will check the Task2 training job type execution status, if it is completed, I can just deleted the k8s resources.billowy-church-83438
09/19/2024, 12:54 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:55 AMthankful-minister-83577
billowy-church-83438
09/19/2024, 12:57 AMbillowy-church-83438
09/19/2024, 12:57 AMsucceeded
or failed or completed if one of the task that we care completed, failed /succeeded?thankful-minister-83577
billowy-church-83438
09/19/2024, 12:59 AMthankful-minister-83577
thankful-minister-83577
billowy-church-83438
09/19/2024, 4:43 AMwhat youāre describing sounds like a sidecar task. that is not part of the flyte crd api.a sidecar task is still a flyte task. it will be part of the flyte API/ecosystem, no?
sidecar containers, init containers, within a pod template.actually, this might not be a bad idea if we need to go down to lower level : )
a gh issue describing the scenario at a high levelWill do while I am trying out approachesā¦
billowy-church-83438
09/19/2024, 6:42 PM