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

Args+kwargs with redis 3 #35

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

tom-price
Copy link
Collaborator

Written to address Issue #1 and builds the fixes presented in PR #34 and replaces PR #24 due to a re-write of the code there.

Added callable column
Passing in args / kwargs

Matthew Egan and others added 21 commits October 10, 2018 12:05
Rejects when a job's interval is lower than a queue's interval.
Rejects when a job's interval is not a multiple of a queue's interval. This seemed to be the most restrictive approach from which things can be loosened up.
Added a settings parameter DJANGO_RQ_SCHEDULER_INTERVAL that can be used to change the schedular interval. Default is 60 matching DJANGO_RQ's default.
Renamed migration adding seconds to be more descriptive.
De-duped code and renamed QueueMixin, which had grown to be more than just that.
Fixed bug where user without delete permission would get error due to `del actions['delete_selected']` not existing in actions.
Delete, bulk enable, and bulk disable all give messages of their success status.
Made clear cron string times are in UTC.
With RQ geting a version 1.0 (from 0.13) several other packages had releases w. backwards incompatible changes (Django-RQ's v2.0 for example).
This update enforces these changes and bumps rq-rcheduler due to tests failing w. lower versions.
Also fixes an issue in this package causing a problem due to changes in redis v3.
Also changes Validation errors to better fit what's suggested in documentation.
Viewable to users with change permission.
Pulls timeout and result_ttl from job if present.
Does NOT decrement repeat count on repeatable job 🤔.
…rovements

# Conflicts:
#	scheduler/models.py
RepeatableJob's clean_result_ttl only raises the ValidationError to protect against a result_ttl shorter than the interval when there are repeats remaining.
The test was set with 0 repeats.
RepeatableJob's clean_result_ttl only raises the ValidationError to protect against a result_ttl shorter than the interval when there are repeats remaining.
The test was set with 0 repeats.
"Times are in UTC" added to field help text.
Both models allow for integer, string, datetime, and boolean inputs and can be extended to other argument types fairly simply.
Also small changes to testproject showing the django-rq queues.
@tom-price tom-price requested a review from g3rd January 9, 2020 05:13
@tom-price
Copy link
Collaborator Author

tom-price commented Sep 17, 2020

The latest updates to this bring this PR up to date with master and also fixes a bug where the run_job_now function wasn't capturing the defined args / kwargs. It's a superset of the content in PRs #29 and #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants