raise exception for big diff

This commit is contained in:
Kenneth Kehl
2024-08-20 12:22:41 -07:00
parent e6ea8f69d3
commit 74fb6b0301

View File

@@ -151,8 +151,9 @@ def dao_create_job(job):
) )
if diff_time.total_seconds() > 120: # It should be only a few seconds diff at most if diff_time.total_seconds() > 120: # It should be only a few seconds diff at most
current_app.logger.error( current_app.logger.error(
"#notify-admin-1859 Something is wrong with job.created_at! Try resetting it" "#notify-admin-1859 Something is wrong with job.created_at!"
) )
raise Exception("#notify-admin-1859 Something is wrong with job.created_at!")
# job.created_at = now_time # job.created_at = now_time
# dao_update_job(job) # dao_update_job(job)
# current_app.logger.error( # current_app.logger.error(