Skip to content

Commit

Permalink
put the reset job schedule to every 2 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbryant committed Feb 27, 2024
1 parent 60f7fff commit 61b8777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server/Jobs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let addResetStorageJob (services: IServiceCollection) =

config
.AddJob<ResetStorageJob>(jobName)
.AddTrigger(fun trigger -> trigger.ForJob(jobName).WithCronSchedule("30 * * * * ?") |> ignore)
.AddTrigger(fun trigger -> trigger.ForJob(jobName).WithCronSchedule("0 0 */2 * * ?") |> ignore)
|> ignore)
.AddQuartzHostedService(fun options -> options.WaitForJobsToComplete <- true)
|> ignore
Expand Down

0 comments on commit 61b8777

Please sign in to comment.