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

Multiprocessing\Multithreading #2810

Closed
diegocorradini opened this issue Oct 21, 2019 · 2 comments
Closed

Multiprocessing\Multithreading #2810

diegocorradini opened this issue Oct 21, 2019 · 2 comments

Comments

@diegocorradini
Copy link

Hi all,

I have been facing the following problem without finding a solution since a while.
I am developing a Django webapp which starts a Luigi pipeline with let s say N workers.
Every worker of the pipeline run queries.

If I am running just 1 worker everything fine.
Otherwise, if I am running more workers, I get random database errors.
It seems that Django and Postgres have problem to run queries from different processes

Is it possible to spawn workers as threads?
Otherwise could you suggest a workaround?

Hope the problem is clear.

The framework is great but without run queries in parallel it becomes useless.

Many thanks.

@kwilcox
Copy link
Contributor

kwilcox commented Oct 21, 2019

Is this the same issue as #2782? Can you continue the discussion there?

@diegocorradini
Copy link
Author

Yes sorry.
I will close this issue.

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

No branches or pull requests

2 participants