flat-waiter-82487
01/22/2025, 8:20 AMclean_up
should be the exact same as the input of the workflow.
> _Source: https://docs.flyte.org/en/v1.14.1/user_guide/development_lifecycle/failure_node.html_
So that Flyte would accept my clean_up
function being something like:
def my_clean_up(*args, **kwargs): ...
?
Any workaround or anything? I'm trying to make a generic cleanup function for our workflows, which have various parameters.careful-australia-19356
02/03/2025, 4:44 PMflat-waiter-82487
02/03/2025, 7:23 PMf(*args, **kwargs)
in place of any callable. I understand type safety checks, but that makes impossible to make generic/shared cleanup function. Any recomendations / workarounds?flat-waiter-82487
03/12/2025, 10:31 AMflat-waiter-82487
03/12/2025, 10:34 AMdef my_generic_cleanup(*args, **kwargs):
...
def cleanup_for_workflow(actual, params, and, others, with_types):
my_generic_cleanup(**locals())
But it's ugly and I still have to maintain the signatures between workflow fn and cleanup fn.high-accountant-32689
03/17/2025, 6:37 PMflat-waiter-82487
03/17/2025, 8:50 PMflat-waiter-82487
03/19/2025, 9:51 AMflat-waiter-82487
03/28/2025, 9:07 PMhigh-accountant-32689
03/31/2025, 3:52 PM