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 RedisJobStore .add_job() .update_job() param error #905

Closed
wants to merge 2 commits into from
Closed

fix RedisJobStore .add_job() .update_job() param error #905

wants to merge 2 commits into from

Conversation

tomnkey
Copy link

@tomnkey tomnkey commented May 10, 2024

redis zadd function score pairs should be specified in two ways:

  • As *args, in the form of: name1, score1, name2, score2, ...
  • or as **kwargs, in the form of: name1=score1, name2=score2, ...

tomnkey added 2 commits May 10, 2024 14:36
redis zadd function score pairs should be specified in two ways:
  - As *args, in the form of: name1, score1, name2, score2, ...
  - or as **kwargs, in the form of: name1=score1, name2=score2, ...
@agronholm
Copy link
Owner

Where did you get this idea?

@agronholm
Copy link
Owner

As you can see in the documentation, the second argument should be a mapping of keys to values, which is what APScheduler is passing it. As further proof, see the failing tests here.

What prompted this PR in the first place?

@agronholm agronholm closed this May 10, 2024
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.

2 participants