Do not crash range tasks if celery result backend does not support saving the group's state

This commit is contained in:
David Douard 2019-01-14 12:06:58 +01:00
parent a1ec4437e6
commit e31b61bee1
3 changed files with 13 additions and 4 deletions

View file

@ -57,7 +57,10 @@ def full_gitlab_relister(self, **lister_args):
promise = group(range_gitlab_lister.s(minv, maxv, **lister_args)
for minv, maxv in ranges)()
self.log.debug('%s OK (spawned %s subtasks)' % (self.name, len(ranges)))
promise.save()
try:
promise.save()
except NotImplementedError:
self.log.info('Unable to call save_group with current result backend.')
return promise.id