You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To allow cleanup of resources even if the pipeline crashes. A possible API:
@sematic.funcdefdo_foo(x: float, bar: str) ->Output:
some_resource=create_resource(x, bar) # create_resource is NOT a funcsematic.on_cleanup(clean_some_resource(resource.id)) # arguments to cleanup funcs must be resolved at call time# ...returnoutput@sematic.funcdefclean_some_resource(resource_id: str) ->None: # cleanup funcs must return None# ...
The text was updated successfully, but these errors were encountered:
To allow cleanup of resources even if the pipeline crashes. A possible API:
The text was updated successfully, but these errors were encountered: