fix(scrape-objective): drop redundant self arg in sync_all_groups loop
Some checks failed
CI / backend (pull_request) Failing after 46s
CI / frontend (pull_request) Successful in 1m53s

Celery bind=True task __call__ auto-prepends task instance to run(),
передача self явно создаёт TypeError "got multiple values for argument
'group_name'" когда первый user-param (group_name) перевязывается на
наш self positional.

Discovered после PR #311 деплоя OBJECTIVE_API_KEY — worker впервые
подхватил sync_all_groups и зафейлил в Glitchtip BACKEND-1F.
This commit is contained in:
lekss361 2026-05-17 19:11:27 +03:00
parent ae0fce3528
commit dbc9a880cf

View file

@ -429,7 +429,6 @@ def sync_all_groups(
logger.info("[%d/%d] sync_objective_group(group=%r) START", idx + 1, len(eff_groups), group)
try:
res = sync_objective_group(
self,
group_name=group,
triggered_by=f"{triggered_by}-multi",
use_ddu=eff_use_ddu,