Merge pull request #21775 from resilient-tech/standard-cron

This commit is contained in:
Sagar Vora 2023-07-23 10:24:45 +00:00 committed by GitHub
commit 838599e02b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ class ScheduledJobType(Document):
"Daily Long": "0 0 * * *",
"Hourly": "0 * * * *",
"Hourly Long": "0 * * * *",
"All": "0/" + str((frappe.get_conf().scheduler_interval or 240) // 60) + " * * * *",
"All": f"*/{(frappe.get_conf().scheduler_interval or 240) // 60} * * * *",
}
if not self.cron_format: