Selwin Ong

Results 508 comments of Selwin Ong
trafficstars

Sorry for the late reply, since RQ no longer supports Python 2.7, we can use Python 3's builtin timezone class. PR welcome :)

@TsimafeiTsykunou please open a PR for this :)

Could you please document the list of accepted arguments in `README`?

I'm ok with merging this in, but needs to be documented :)

I'm reopening this issue because I think we should have a scheduler.empty() method to do this easily.

Running `scheduler.empty()` should just empty the scheduler, while running `scheduler.empty(delete_jobs=True)` should empty the scheduler and delete all jobs inside. Thanks :)

@jmmills there seems to be a miscommunication. What I think `scheduler.empty` should do is clearing the scheduler, not enqueueing all jobs in the scheduler. So it should be something like...

Recent versions of RQ accepts `job_id` argument so I think we should support that as well. PR for this welcome :)

I'm afraid I couldn't reproduce the issue. The example you gave is kind of complex so I created my own tests using the bare minimum. In this gist you'll see...