Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Don't throw error if task has been deleted #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Don't throw error if task has been deleted #35

wants to merge 3 commits into from

Conversation

Raznak
Copy link

@Raznak Raznak commented Jan 25, 2018

Hi,

I can't disable a task after creating it. Celery still is still executing it after.
So I wrote a small bug fix but it is not very pretty.

@@ -89,6 +89,8 @@ def save(self):
self._task.save(save_condition={})
except Exception:
get_logger(__name__).error(traceback.format_exc())
except mongoengine.errors.NotUniqueError:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this exception already catch by previous "except Exception"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants