Hello, is there a way to 'pause' a task depending on the outcome of some runtime process?
I don't want the task to retry except in this one specific runtime result (normally the task could just fail and retry according to args)
Perhaps I could return a manual state
AwaitingRetry
?
Copy code
@task
# some code, oh found out a blocker I'd like to wait for
time_2_hours_from_now= .... some date function...
if function_is_blocked:
return AwaitingRetry(scheduled_time=time_2_hours_from_now
j
Javier Ruere
11/01/2022, 6:03 PM
This would be a cool feature!
m
Mason Menges
11/01/2022, 10:29 PM
Hey @merlin This is definitely something we're intending to support in the future, in it's current state you could probably implement some conditional logic to bypass the task depending on the outcome of that process, howyou'd do this depends a bit on your use case but it should be doable.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.