Skip to content
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

Support for dynamic number of parallel jobs? #47

Open
joshjordan opened this issue May 31, 2016 · 2 comments
Open

Support for dynamic number of parallel jobs? #47

joshjordan opened this issue May 31, 2016 · 2 comments

Comments

@joshjordan
Copy link

What if I have a workflow that looks like this?

  1. Fetch the number of objects
  2. For each object, enqueue one processing job
  3. After all objects have been processed, run one final job

Is this something that's supported? A practical example is processing all of a user's Github repos. You don't know how many there are in advance, and you want to be able to let individual jobs fail independently.

It doesn't seem like defining superworkers is the right pattern.

@jeremyhaile
Copy link

@joshjordan I'm trying to do this right now. Do batches not handle this for you?

@joshjordan
Copy link
Author

Perhaps it does! Is it possible to create a job that runs only after the entire batch has completed? That's what I couldn't figure out or make happen when I tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants