Skip to content

Commit 5143f66

Browse files
committed
Use save_job for saving count
1 parent 3031151 commit 5143f66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scheduling/schedule_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ def cleanup():
155155
if job.schedule.repeatable:
156156
job.schedule.executions_count += 1
157157

158-
file_utils.write_file(
159-
job_path,
160-
json.dumps(job.as_serializable_dict(), indent=2))
158+
self.save_job(job)
161159

162160
except:
163161
LOGGER.exception('Failed to execute ' + job.get_log_name())

0 commit comments

Comments
 (0)