mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-08 12:13:36 +00:00
fix comment
This commit is contained in:
parent
4e914d0e2a
commit
fd2bb3bb7d
@ -84,7 +84,6 @@ class CronService:
|
||||
if mtime != self._last_mtime:
|
||||
logger.info("Cron: jobs.json modified externally, reloading")
|
||||
self._store = None
|
||||
self._last_mtime = mtime
|
||||
if self._store:
|
||||
return self._store
|
||||
|
||||
@ -131,6 +130,7 @@ class CronService:
|
||||
delete_after_run=j.get("deleteAfterRun", False),
|
||||
))
|
||||
self._store = CronStore(jobs=jobs)
|
||||
self._last_mtime = self.store_path.stat().st_mtime
|
||||
except Exception as e:
|
||||
logger.warning("Failed to load cron store: {}", e)
|
||||
self._store = CronStore()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user