diff --git a/common/djangoapps/entitlements/tasks.py b/common/djangoapps/entitlements/tasks.py index ce908abcda..b193e06e00 100644 --- a/common/djangoapps/entitlements/tasks.py +++ b/common/djangoapps/entitlements/tasks.py @@ -28,6 +28,7 @@ MIT_SUPPLY_CHAIN_COURSES = [ '6513ed9c112a495182ad7036cbe52831', ] + @shared_task(bind=True, ignore_result=True) @set_code_owner_attribute def expire_old_entitlements(self, start, end, logid='...'): @@ -111,7 +112,6 @@ def expire_and_create_entitlements(self, no_of_entitlements): entitlement.save() LOGGER.info('created new entitlement with id %d ', entitlement.id) - except Exception as exc: LOGGER.exception('Failed to expire entitlements ',) # The call above is idempotent, so retry at will