chore: use standard cron expression

This commit is contained in:
Sagar Vora 2023-07-23 15:52:33 +05:30
parent e51646faf6
commit 78ce5020f9

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: