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

Fixes 223 #224

Merged
merged 6 commits into from
Jun 5, 2020
Merged

Fixes 223 #224

merged 6 commits into from
Jun 5, 2020

Conversation

ewjoachim
Copy link
Member

Closes #223

Successful PR Checklist:

  • Tests
    • (not applicable?)
  • Documentation
    • (not applicable?)
  • Had a good time contributing?

queue: Optional[str] = None,
task: Optional[str] = None,
status: Optional[str] = None,
lock: Optional[str] = None,
Copy link

Choose a reason for hiding this comment

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

Doesn't this one need a queueing_lock parameter as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure it makes sense... What information would you be searching if you listed queues with a queueing_lock filter ?

Happy to add it if you have a use case or if you think the lack of consistency in this aspect would be confusing.

Copy link

Choose a reason for hiding this comment

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

No it was just for the consistency with list_jobs.

@@ -96,9 +97,9 @@ def do_retry(self, arg):

Example: retry 2
"""
print_job(self.admin.set_job_status(arg, status="todo"))
print_job(self.admin.set_job_status(arg, status="todo")) # type: ignore
Copy link

Choose a reason for hiding this comment

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

Why do you need to ignore typing here?

Copy link
Member Author

Choose a reason for hiding this comment

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

mypy undestands set_job_status_async but not set_job_status.

#101

queue: Optional[str] = None,
task: Optional[str] = None,
status: Optional[str] = None,
lock: Optional[str] = None,
Copy link

Choose a reason for hiding this comment

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

Same here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Same answer :)

@codecov
Copy link

codecov bot commented Jun 5, 2020

Codecov Report

Merging #224 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #224   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines         1097      1097           
  Branches       134       134           
=========================================
  Hits          1097      1097           
Impacted Files Coverage Δ
procrastinate/tasks.py 100.00% <ø> (ø)
procrastinate/admin.py 100.00% <100.00%> (ø)
procrastinate/jobs.py 100.00% <100.00%> (ø)
procrastinate/shell.py 100.00% <100.00%> (ø)
procrastinate/store.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e47d99...5cfa6c8. Read the comment docs.

@ewjoachim ewjoachim merged commit 79f253a into master Jun 5, 2020
@ewjoachim ewjoachim deleted the fixes-223 branch June 5, 2020 12:03
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.

Improvments for Admin code
3 participants