mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Capture error when celery back-end does not support forgetting tasks (#10770)
This commit is contained in:
parent
f2d9f00013
commit
1842c56209
@ -2240,7 +2240,13 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
|
||||
|
||||
# Explicitly forget the task to ensure the task metadata is removed from the
|
||||
# Celery results backend in a timely manner.
|
||||
task.forget()
|
||||
try:
|
||||
task.forget()
|
||||
except NotImplementedError:
|
||||
logger.warning(
|
||||
"Unable to forget Celery task as backend"
|
||||
"does not support this operation"
|
||||
)
|
||||
except Exception as ex: # pylint: disable=broad-except
|
||||
logger.exception("Query %i: %s", query.id, str(ex))
|
||||
msg = _(
|
||||
|
Loading…
Reference in New Issue
Block a user