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:
Alexander Haase 2024-07-25 15:23:16 +02:00
parent 60e4e81020
commit bd4a21cf5c

View File

@ -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,