Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Prevent initializion of session object in deferredTasks #204

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def deferred(self, *args, **kwargs ):
except Exception as e:
logging.exception(e)
raise errors.RequestTimeout() #Task-API should retry
session.current.session.changed = False # Reset session changed marker - don't initialize this session
deferred.exposed=True

def index(self, *args, **kwargs):
Expand Down