islco / django-rq-scheduler

A database backed job scheduler for Django RQ and RQ Scheduler
MIT License
42 stars 46 forks source link

DataError at /admin/scheduler/repeatablejob/add/ Invalid input of type: 'NoneType'. Convert to a byte, string or number first. #32

Closed jpescalona closed 5 years ago

jpescalona commented 5 years ago

Step to reproduce:

Current behavior:


I've been checking the value of job_id was None when calling to contains function and this could potentially the reason of the failure:

  File "/home/jescalona/virtualenvs/bighaiku/lib/python3.7/site-packages/rq_scheduler/scheduler.py", line 260, in __contains__
    return self.connection.zscore(self.scheduled_jobs_key, job_id) is not None

Will investigate more and open a PR if i find the solution. Thanks

pixelead0 commented 5 years ago

I have the same problem.

alexandrukis commented 5 years ago

Just here to confirm updating to 1.1.3 fixed this for me.

jpescalona commented 5 years ago

Hey! Yeah, this latest version 1.1.3 includes my changes and solved the issue. thanks