Skip to content

Commit

Permalink
Merge pull request #318 from ImMin5/master
Browse files Browse the repository at this point in the history
Correct logic for manual duplicate job time check
  • Loading branch information
ImMin5 authored Feb 5, 2025
2 parents b02e908 + e510b5c commit 350dff2
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 350dff2

Please sign in to comment.