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

Return Jobs when scheduling them #22

Merged
merged 1 commit into from
Apr 29, 2022
Merged

Conversation

bigjools
Copy link
Collaborator

Engine.schedule* and Task.schedule* used to return None, now they will
return the Job(s) actually scheduled.

Fixes #21

@bigjools bigjools requested a review from NicolasLM April 28, 2022 05:27
Comment on lines -221 to 227
self._spin.schedule(task, *args, **kwargs)
return self._spin.schedule(task, *args, **kwargs)

Copy link
Contributor

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.

Comment on lines -238 to +247
self._spin.schedule_at(task, at, *args, **kwargs)
return self._spin.schedule_at(task, at, *args, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here.

Comment on lines -249 to +260
self._spin.schedule_batch(batch)
return self._spin.schedule_batch(batch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...and here.

Copy link
Owner

@NicolasLM NicolasLM left a 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
@bigjools bigjools merged commit 35d3928 into NicolasLM:master Apr 29, 2022
@bigjools bigjools deleted the issue/21 branch April 29, 2022 00:21
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

Successfully merging this pull request may close these issues.

Queued jobs are not exposed on the API until you get a signal about them
3 participants