Comments (2)
It seems like the info messages are incorrect when the max_jobs option is used. I have the following script (test.py)
#!/usr/bin/env python
import fyrd
cmd = 'sleep 180'
job1 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job2 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job3 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job4 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job5 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job6 = fyrd.Job(cmd,partition = "owners", outpath = 'out', scriptpath = 'sub')
job1.submit(max_jobs=2)
job2.submit(max_jobs=2)
job3.submit(max_jobs=2)
job4.submit(max_jobs=2)
job5.submit(max_jobs=2)
job6.submit(max_jobs=2)
And it produces the following output
$ ./test.py
20170816 15:40:29.530 | INFO --> The queue is full, there are 1 jobs running and 0 jobs queued. Will wait to submit, retrying every 1 seconds.
20170816 15:43:23.612 | INFO --> The queue is full, there are 1 jobs running and 1 jobs queued. Will wait to submit, retrying every 1 seconds.
20170816 15:43:42.145 | INFO --> The queue is full, there are 1 jobs running and 1 jobs queued. Will wait to submit, retrying every 1 seconds.
20170816 15:46:35.936 | INFO --> The queue is full, there are 1 jobs running and 1 jobs queued. Will wait to submit, retrying every 1 seconds.
However manual inspection of the queue shows that there are two jobs running at any given time.
I think it is a good idea to set this at the queue level and not the job level, otherwise I can effectively ignore the max_jobs argument with:
job1.submit(max_jobs=1)
job2.submit(max_jobs=2)
job3.submit(max_jobs=3)
job4.submit(max_jobs=4)
job5.submit(max_jobs=5)
job6.submit(max_jobs=6)
from fyrd.
That issue is because the time that the job object is caching job information is different from the queue, it is a little silly, I might try to fix it later. I am working on the change to set the minimum, but it will probably go into the 0.6.2 branch only, to be released with the 0.6.2.a1 release next week.
from fyrd.
Related Issues (20)
- Add possiblility to set path to slurm executables HOT 3
- When running as a file, file functions not imported
- Add email notification HOT 1
- Get exitcode from STDOUT instead of queue? HOT 2
- Job.write sbatch script error when using modules HOT 2
- Make sure `write()` deletes files and reinitializes before running
- fyrd queue -a -p does not filter by partition
- Add done file and success checking
- Add job tracking option
- Auto import all functions in a file HOT 2
- Setting the locations for *.o and *.e files with Torque PBS and submit_file HOT 2
- Allow shell variables in config paths HOT 1
- Don't update Queue on initialization HOT 2
- Created .sbatch file has partition of "dict_keys([6788651, 6724208, 6724209..." HOT 2
- Bug: Torque dependencies wrong
- Empty memory option in profiles.txt
- New Maintainer Needed
- KeyError: 'notify' when fyrd conf init
- Race condition loading/writing config file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fyrd.