Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/addons/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def update_addon_appsupport():
ids = (Addon.objects.valid().distinct()
.filter(newish, good).values_list('id', flat=True))

task_log.info('Updating appsupport for %d new-ish addons.' % len(ids))
ts = [_update_appsupport.subtask(args=[chunk])
for chunk in chunked(ids, 20)]
TaskSet(ts).apply_async()
Expand All @@ -270,9 +271,9 @@ def update_all_appsupport():


@task
@transaction.commit_manually
def _update_appsupport(ids, **kw):
from .tasks import update_appsupport
task_log.info('Updating appsupport for %d of new-ish addons.' % len(ids))
update_appsupport(ids)


Expand Down
1 change: 1 addition & 0 deletions apps/addons/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def update_last_updated(addon_id):
Addon.objects.filter(pk=pk).update(last_updated=t)


@write
def update_appsupport(ids):
log.info("[%s@None] Updating appsupport for %s." % (len(ids), ids))

Expand Down