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

enqueue_at(Job) #286

Open
stevennic opened this issue Mar 9, 2023 · 2 comments
Open

enqueue_at(Job) #286

stevennic opened this issue Mar 9, 2023 · 2 comments

Comments

@stevennic
Copy link

Wouldn't it make sense for enqueue_at() to support a Job parameter to submit prepared Job instances?

@sokovis
Copy link

sokovis commented Mar 23, 2023

Same problem.
My production is down :)
File "/usr/local/lib/python3.10/site-packages/rq_scheduler/scheduler.py", line 423, in enqueue_job
queue.enqueue_job(job, at_front=bool(job.enqueue_at_front))
AttributeError: 'Job' object has no attribute 'enqueue_at_front'

@DhavalGojiya
Copy link

DhavalGojiya commented Dec 10, 2024

Issue with rq_scheduler Version v0.13+

Starting from rq_scheduler version v0.13.0, the following code was added in the Scheduler class method enqueue_job(self, job):

queue.enqueue_job(job, at_front=bool(job.enqueue_at_front))

You can find the location of this code here: enqueue_job.

This introduces an issue, causing the following error:

AttributeError: 'Job' object has no attribute 'enqueue_at_front'

Observations

  • I could not find any fix for this issue in rq_scheduler versions released after v0.13.0.

Temporary Fix

The temporary solution I found is to downgrade the rq_scheduler version to v0.10.0, which resolves this attribute issue.

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

No branches or pull requests

3 participants