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

MVJ-470 Avoid PicklingError in email reports #753

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

juho-kettunen-nc
Copy link
Contributor

Passing complex objects to django-q async_task results in a PicklingError during serialization which prevents report creation.

This change avoids the problem by only passing module-level functions and regular Python data structures to async_task and between the asynchronous function and the hook.

Passing complex objects to django-q async_task results in a
PicklingError during serialization which prevents report creation.
This change avoids the problem by only passing module-level functions
and regular Python data structures to async_task and between the
asynchronous function and the hook.
Without this property, the async task would use the default timeout, which is currently too short at 90 seconds.
This reverts commit aa3acb4.

Trying out whether the change was at all needed
This is just in case, because async email reports appear to sometimes
get eternally stuck in the queues if the worker is killed by a timeout.
Copy link
Contributor

@henrinie-nc henrinie-nc left a comment

Choose a reason for hiding this comment

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

Seems like the fix was even simpler than I anticipated, looks great!

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

Successfully merging this pull request may close these issues.

2 participants