-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
[WIP] Attempt to make job submission async #473
Conversation
dask_jobqueue/core.py
Outdated
# Should we make this async friendly? | ||
return self._call(shlex.split(self.submit_command) + [script_filename]) | ||
call = shlex.split(self.submit_command + [script_filename]) | ||
return await asyncio.get_running_loop().run_in_executor(None, self._call(call)) |
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.
If I'm reading this right, I don't think there's a need to run this in an executor as you already made _call
async.
ab4a1a9
to
2b182e5
Compare
Some CI error looks genuine for example this one: https://github.com/dask/dask-jobqueue/pull/473/checks?check_run_id=1406501917. I am not an async expert, but I would guess you need to add some Full disclosure : unfortunately I don't really understand the original issue #470 ... |
4d181fe
to
26a0e70
Compare
This PR is a bit old... @oshadura are you still around and up for this change? I'm going to close this one next time I'll take a look at the activity here, unless someone updates it. |
@guillaumeeb sorry I was working on other things and thanks for reminder! I will definitely try to take a look in next couple of days and update/close PR. |
It's been a long time since this PR had any activity so I'm going to close it out. |
Probably fixes: #470
cc: @bbockelm