mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Increase jitter to 60
This commit is contained in:
parent
737ebfd521
commit
7c9847fe48
1 changed files with 1 additions and 1 deletions
|
@ -967,6 +967,7 @@ async def schedule_automation(
|
|||
):
|
||||
user_timezone = pytz.timezone(timezone)
|
||||
trigger = CronTrigger.from_crontab(crontime, user_timezone)
|
||||
trigger.jitter = 60
|
||||
# Generate id and metadata used by task scheduler and process locks for the task runs
|
||||
job_metadata = json.dumps(
|
||||
{
|
||||
|
@ -996,7 +997,6 @@ async def schedule_automation(
|
|||
id=job_id,
|
||||
name=job_metadata,
|
||||
max_instances=2, # Allow second instance to kill any previous instance with stale lock
|
||||
jitter=30,
|
||||
)
|
||||
return job
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue