Skip to content

Commit 009c91b

Browse files
committed
feat: modify get_tasks for getting benefit cost data
Signed-off-by: ImMin5 <[email protected]>
1 parent 8b58562 commit 009c91b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/cloudforet/cost_analysis/manager/job_manager.py

+13
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,19 @@ def get_tasks(
9696
synced_accounts = self._extend_synced_accounts(
9797
synced_accounts, first_sync_tenants
9898
)
99+
# Benefit Job Task
100+
if options.get("cost_metric") == "AmortizedCost":
101+
tasks.append(
102+
{
103+
"task_options": {
104+
"start": start_month,
105+
"account_agreement_type": billing_account_agreement_type,
106+
"collect_scope": "billing_account_id",
107+
"is_benefit_job": True,
108+
}
109+
}
110+
)
111+
99112
else:
100113
tasks = [
101114
{

0 commit comments

Comments
 (0)