Skip to content

Commit

Permalink
fix: correct logic for manual duplicate job time check
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Feb 5, 2025
1 parent 9a1fbc3 commit e510b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def _check_duplicate_job(
return True
elif job_vo.options.get("sync_mode") == "MANUAL":
manual_duplicate_job_time = datetime.utcnow() - timedelta(hours=24)
if job_vo.updated_at > manual_duplicate_job_time:
if job_vo.updated_at < manual_duplicate_job_time:
return True
else:
self.job_mgr.change_canceled_status(job_vo)
Expand Down

0 comments on commit e510b5c

Please sign in to comment.