-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
basic sge implementation #6
Conversation
dask_jobqueue/sge.py
Outdated
self.n = 0 | ||
self._adaptive = None | ||
self._submitcmd = 'qsub' | ||
self._cancelcmd = 'qdel' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should maybe be class variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, agree for submit and cancel commands.
project = project or os.environ.get('SGE_ACCOUNT') | ||
if not project: | ||
raise ValueError("Must specify a project like `project='UCLB1234' " | ||
"or set SGE_ACCOUNT environment variable") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on #7 ?
|
||
def test_basic(loop): | ||
with SGECluster(walltime='00:02:00', threads_per_worker=2, memory='7GB', | ||
interface='ib0', loop=loop) as cluster: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The interface keyword option here will likely fail on a CI system.
So Travis CI is enabled, but does not have a configuration file yet. Would encourage just stealing stuff from |
Thanks I'll try to take a look. |
closes #3
I don't think this is ready to merge. Turns out the SGE cluster I used to have access to is no more. Perhaps we should get a basic CI implementation setup before pushing more content into the repo?