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

Queue of jobs with max concurrency #447

Open
aiqc opened this issue Oct 23, 2023 · 1 comment
Open

Queue of jobs with max concurrency #447

aiqc opened this issue Oct 23, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@aiqc
Copy link

aiqc commented Oct 23, 2023

I have hundreds of jobs to run, but my server only has enough resources to run 5 jobs at a time.

It would be nice to create a queue of jobs where 5 are always running.

For context, it's all the same task/logic, just for a different input file.


How do I solve my problem right now?
I have a CSV file that keeps track of which files have/haven't been processed. I run a notebook that fetches 5 unprocessed files and feeds them through a series of multiprocessing Pools. It works, but I wouldn't want the entire queue of jobs in a while loop in case a job fails. So I have to check back every few hours and I am missing out on the chance to launch jobs while I sleep.

Looks like the airflow parity is max_active_runs_per_dag
https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#max-active-runs-per-dag

@aiqc aiqc added the enhancement New feature or request label Oct 23, 2023
@welcome
Copy link

welcome bot commented Oct 23, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

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

No branches or pull requests

1 participant