Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Lab. Celery task.forget() is not supported by all backends. "NotImplementedError: backend does not implement forget." #10757

Closed
3 tasks done
jinhyukchang opened this issue Sep 1, 2020 · 3 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days

Comments

@jinhyukchang
Copy link

Hi,
We are using SQS on Celery and with this PR, it invokes forget() call, but it seems SQS backend has not implemented it. From Google search, AMQP also hasn't implemented it yet.

Since, not all backend implementation has this method implemented, how about isolate this failure by wrapping with try...except?

Traceback (most recent call last):
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/views/core.py", line 2117, in _sql_json_async
    task.forget()
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/celery/result.py", line 146, in forget
    self.backend.forget(self.id)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/celery/backends/base.py", line 463, in forget
    self._forget(task_id)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/celery/backends/base.py", line 466, in _forget
    raise NotImplementedError('backend does not implement forget.')
NotImplementedError: backend does not implement forget.

Expected results

No exception when user submit query from SQL Lab.

Actual results

Failing with message at https://github.com/apache/incubator-superset/blob/master/superset/views/core.py#L2142

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Use SQS as Celery backend
  2. Submit query in SQLLab

Environment

(please complete the following information):

  • superset version: 0.37
  • python version: 3.6

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

@jinhyukchang jinhyukchang added the !deprecated-label:bug Deprecated label - Use #bug instead label Sep 1, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.66. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Dec 25, 2020
@willbarrett
Copy link
Member

Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

2 participants