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

how to limit number of jobs #195

Closed
yw-fang opened this issue Oct 7, 2024 · 2 comments
Closed

how to limit number of jobs #195

yw-fang opened this issue Oct 7, 2024 · 2 comments

Comments

@yw-fang
Copy link

yw-fang commented Oct 7, 2024

Based on the manul of jobflow remote, it can limit the number of jobs. Could any one show how to enable it? Can we set the limit of jobs for each worker through the ~/.jfremote/project.yaml file? Thank you very much!

@gpetretto
Copy link
Contributor

Hi @yw-fang, I suppose you are referring to this functionality: https://matgenix.github.io/jobflow-remote/user/advancedoptions.html#limiting-the-number-of-submitted-jobs. As mentioned there, in the subsection of your worker you can specify the max_jobs options. Jobflow-remote will not submit more than that number of jobs to the queue for that project and that worker.
For example:

workers:
  your_worker_name:
    scheduler_type: slurm
    work_dir: /some/path
    type: remote
    host: some.remote.host
    max_jobs: 5

Note that this will not consider other jobs that you may manually submit to the cluster.

@yw-fang
Copy link
Author

yw-fang commented Oct 7, 2024

Hi, @gpetretto thank you very much for your quick response. This is exactly what I want to know.

@yw-fang yw-fang closed this as completed Oct 7, 2024
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