Skip to content

Commit

Permalink
Merge pull request #291 from whdalsrnt/master
Browse files Browse the repository at this point in the history
Refactor Job Process
  • Loading branch information
whdalsrnt authored Sep 30, 2024
2 parents 002fa1b + ed78413 commit 0505b49
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,16 @@ def get_cost_data(self, params):
)

if not is_canceled:
self._aggregate_cost_data_with_job_task_id(
data_source_id,
domain_id,
job_id,
job_task_id,
data_keys,
additional_info_keys,
tag_keys,
)

end_dt = datetime.utcnow()
_LOGGER.debug(f"[get_cost_data] end job ({job_task_id}): {count}")
_LOGGER.debug(
Expand All @@ -305,16 +315,6 @@ def get_cost_data(self, params):
except Exception as e:
self.job_task_mgr.change_error_status(job_task_vo, e, secret_type)

self._aggregate_cost_data_with_job_task_id(
data_source_id,
domain_id,
job_id,
job_task_id,
data_source_vo.cost_data_keys,
data_source_vo.cost_additional_info_keys,
data_source_vo.cost_tag_keys,
)

self._close_job(
job_id,
data_source_id,
Expand Down

0 comments on commit 0505b49

Please sign in to comment.