mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
Fix enqueue interval jobs
As the job's name is set by enqueue(), it must not be passed in handle() to avoid duplicate kwargs with the same name.
This commit is contained in:
parent
60e4e81020
commit
bd4a21cf5c
@ -65,7 +65,6 @@ class BackgroundJob(ABC):
|
||||
new_scheduled_time = (job.scheduled or job.started) + timedelta(minutes=job.interval)
|
||||
cls.enqueue(
|
||||
instance=job.object,
|
||||
name=job.name,
|
||||
user=job.user,
|
||||
schedule_at=new_scheduled_time,
|
||||
interval=job.interval,
|
||||
|
Loading…
Reference in New Issue
Block a user