chore(scheduler): never mark sites as dormant if running in developer mode
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
b25ff5ba71
commit
3efd8c6d71
1 changed files with 3 additions and 0 deletions
|
|
@ -202,6 +202,9 @@ def schedule_jobs_based_on_activity(check_time=None):
|
|||
|
||||
|
||||
def is_dormant(check_time=None):
|
||||
# Assume never dormant if developer_mode is enabled
|
||||
if frappe.conf.developer_mode:
|
||||
return False
|
||||
last_activity_log_timestamp = _get_last_creation_timestamp("Activity Log")
|
||||
since = (frappe.get_system_settings("dormant_days") or 4) * 86400
|
||||
if not last_activity_log_timestamp:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue