-
Notifications
You must be signed in to change notification settings - Fork 4
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
Return Jobs when scheduling them #22
Conversation
self._spin.schedule(task, *args, **kwargs) | ||
return self._spin.schedule(task, *args, **kwargs) | ||
|
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.
This method signature and docstring should also be updated to reflect the new return value.
self._spin.schedule_at(task, at, *args, **kwargs) | ||
return self._spin.schedule_at(task, at, *args, **kwargs) |
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.
Also here.
self._spin.schedule_batch(batch) | ||
return self._spin.schedule_batch(batch) |
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.
...and here.
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.
Makes sense, feel free to merge after addressing @0xDEC0DE 's comments.
Engine.schedule* and Task.schedule* used to return None, now they will return the Job(s) actually scheduled. Fixes NicolasLM#21
Engine.schedule* and Task.schedule* used to return None, now they will
return the Job(s) actually scheduled.
Fixes #21