|
@@ -90,10 +90,10 @@ def backfill_seer_grouping_records_for_project(
|
|
|
return
|
|
|
|
|
|
if only_delete:
|
|
|
- delete_seer_grouping_records(project.id, redis_client)
|
|
|
+ delete_seer_grouping_records(current_project_id, redis_client)
|
|
|
logger.info(
|
|
|
"backfill_seer_grouping_records.deleted_all_records",
|
|
|
- extra={"current_project_id": project.id},
|
|
|
+ extra={"current_project_id": current_project_id},
|
|
|
)
|
|
|
call_next_backfill(
|
|
|
last_processed_group_index=None,
|
|
@@ -178,7 +178,7 @@ def backfill_seer_grouping_records_for_project(
|
|
|
logger.info(
|
|
|
"backfill_seer_grouping_records.seer_down",
|
|
|
extra={
|
|
|
- "current_project_id": project.id,
|
|
|
+ "current_project_id": current_project_id,
|
|
|
"last_processed_project_index": last_processed_project_index,
|
|
|
},
|
|
|
)
|
|
@@ -258,12 +258,12 @@ def call_next_backfill(
|
|
|
return
|
|
|
|
|
|
if isinstance(cohort, str):
|
|
|
- cohort_list = settings.SIMILARITY_BACKFILL_COHORT_MAP.get(cohort, [])
|
|
|
+ cohort_projects = settings.SIMILARITY_BACKFILL_COHORT_MAP.get(cohort, [])
|
|
|
else:
|
|
|
- cohort_list = cohort
|
|
|
+ cohort_projects = cohort
|
|
|
|
|
|
batch_project_id, last_processed_project_index = get_project_for_batch(
|
|
|
- last_processed_project_index, cohort_list, cohort
|
|
|
+ last_processed_project_index, cohort_projects
|
|
|
)
|
|
|
|
|
|
if batch_project_id is None:
|