-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polling scenario in job #98
Comments
Hello! It's not strictly possible to build an explicit workflow that loops because we use acyclic graphs underneath, but you could make a blocking job that loops inside it waiting on data to appear. There was an idea for branching workflows but it was never fleshed out #65 |
@pokonski Thanks for the answer. |
That is right! Failed jobs do not enqueue further jobs of the workflow, so you can use it as a short circuit :) (Source: https://github.com/chaps-io/gush/blob/master/lib/gush/worker.rb#L23) |
Thanks, is there any proper way of failing a job and schedule it without raising error notifications system and with the compliance with gush API? |
That topic is outside of Gush, it raises an exception inside the job, you can rescue from it in ActiveJob https://api.rubyonrails.org/classes/ActiveJob/Exceptions.html |
Hey! Is it possible to implement this:
What is the proper way of doing such a thing with gush?
The text was updated successfully, but these errors were encountered: