Skip to content
This repository was archived by the owner on Apr 11, 2020. It is now read-only.

Run LO in the same process #3

Merged
merged 3 commits into from
Jun 10, 2019
Merged

Run LO in the same process #3

merged 3 commits into from
Jun 10, 2019

Conversation

Jafnee
Copy link
Collaborator

@Jafnee Jafnee commented Jun 8, 2019

Problem:
Current code will not run in celery due to
AssertionError: daemonic processes are not allowed to have children

Solution:
This isn't a proper solution, just wanted a snippet we can use to discuss.
See these to understand context on why Process was used:

Process was used to prevent django from crashing on LO errors. I made it run in the same process.

Thread here is not needed, just wanted to change least amount of code to get it running on our beta server.


Along with this PR, version is bumped to 0.3.3 and support for Django 1.11.x is added.

@Jafnee Jafnee added the review label Jun 8, 2019
@Jafnee Jafnee requested a review from kiawin June 8, 2019 14:24
@Jafnee
Copy link
Collaborator Author

Jafnee commented Jun 9, 2019

Looks like it works. Will prettify if this is good enough solution for now

…cess" param.

The change will allow templateddoc to be ran in celery without causing the following error:
"daemonic processes are not allowed to have children"
@kiawin kiawin force-pushed the run-lokit-in-same-process branch from 980f11e to e444ceb Compare June 10, 2019 04:15
@kiawin kiawin marked this pull request as ready for review June 10, 2019 04:20
Copy link
Collaborator Author

@Jafnee Jafnee left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Owner

@kiawin kiawin left a comment

Choose a reason for hiding this comment

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

lgtm

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

Successfully merging this pull request may close these issues.

2 participants