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

FILO queueing #84

Open
scones opened this issue Jan 15, 2018 · 1 comment
Open

FILO queueing #84

scones opened this issue Jan 15, 2018 · 1 comment

Comments

@scones
Copy link
Contributor

scones commented Jan 15, 2018

Feature suggestion:

Instead of the current FIFO queue job retrieval (lpop), i'd like some queues to work as FILO (rpop).
The queues in question (on my side) contain worker, that spawn more worker, which in turn spawn more workers, thus i can generate several hundred thousand jobs with one initial job (depending on parameters).

This is not a problem in itself. My Problem start where the workers use system resources to do their job.
Even if the last worker in a specific chain cleans up after himself, all the jobs in a chain won't get cleared, since the last job gets executed last in every chain. As a the system resources run out, before the chain gets finished, which in turn yielded failure for all jobs.

Another concern with such swarming jobs is:

  • they are hard to keep track of (as in progress)
  • with bigger final queues, one would see the results just after a long while

I'd consider making the queues plugable too for this, as this is (coding wise) a minor thing and should be more like a configuration of some sort.

Thoughts?

regards,
scones

@scones
Copy link
Contributor Author

scones commented Jan 17, 2018

depends on #82 obviously

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

No branches or pull requests

2 participants