Skip to content

Commit

Permalink
chore: remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
whdalsrnt committed Sep 11, 2023
1 parent f6e2aa1 commit 616b033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/spaceone/cost_analysis/manager/cost_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ def analyze_yearly_costs(self, query, target='SECONDARY_PREFERRED'):
def stat_monthly_costs_with_cache(self, query, query_hash, domain_id, data_source_id):
return self.stat_monthly_costs(query)

# @cache.cacheable(key='analyze-costs:daily:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
@cache.cacheable(key='analyze-costs:daily:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
def analyze_costs_with_cache(self, query, query_hash, domain_id, data_source_id, target='SECONDARY_PREFERRED'):
return self.analyze_costs(query, target)

# @cache.cacheable(key='analyze-costs:monthly:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
@cache.cacheable(key='analyze-costs:monthly:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
def analyze_monthly_costs_with_cache(self, query, query_hash, domain_id, data_source_id, target='SECONDARY_PREFERRED'):
return self.analyze_monthly_costs(query, target)

# @cache.cacheable(key='analyze-costs:yearly:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
@cache.cacheable(key='analyze-costs:yearly:{domain_id}:{data_source_id}:{query_hash}', expire=3600 * 24)
def analyze_yearly_costs_with_cache(self, query, query_hash, domain_id, data_source_id, target='SECONDARY_PREFERRED'):
return self.analyze_yearly_costs(query, target)

Expand Down
1 change: 0 additions & 1 deletion src/spaceone/cost_analysis/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ def _aggregate_monthly_cost_data(self, data_source_id, domain_id, job_id, job_ta
'allow_disk_use': True # Allow disk use for large data
}

_LOGGER.debug(f'[_aggregate_monthly_cost_data] query: {query}')
response = self.cost_mgr.analyze_costs(query)
results = response.get('results', [])
for aggregated_cost_data in results:
Expand Down

0 comments on commit 616b033

Please sign in to comment.