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

Fix Django + cron using the wrong connector #1164

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Fix Django + cron using the wrong connector #1164

merged 1 commit into from
Aug 19, 2024

Conversation

ewjoachim
Copy link
Member

@ewjoachim ewjoachim commented Aug 16, 2024

Closes #1158

We should not use with_connector. replace_connector is the way to go.
with_connector has been documented for ages so there's no hurry to remove it, but at least now, it's clear.

I'll need to think about whether this is testable but I'm really not sure.

This PR makes it so that we (almost) don't use with_connectors anymore.

Successful PR Checklist:

  • Tests
    • (not applicable?)
  • Documentation
    • (not applicable?)

PR label(s):

@ewjoachim ewjoachim requested a review from a team as a code owner August 16, 2024 15:42
@github-actions github-actions bot added the PR type: bugfix 🕵️ Contains bug fix label Aug 16, 2024
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  procrastinate
  app.py
  procrastinate/contrib/django/management/commands
  procrastinate.py
Project Total  

This report was generated by python-coverage-comment-action

@medihack medihack merged commit 0bed3ef into main Aug 19, 2024
16 checks passed
@medihack medihack deleted the cron-django branch August 19, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR type: bugfix 🕵️ Contains bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does the worker defer a task when it is occupied with another task?
2 participants