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

Save log (heaps) cause a concurrency problem #1

Open
huogerac opened this issue Jun 17, 2021 · 0 comments
Open

Save log (heaps) cause a concurrency problem #1

huogerac opened this issue Jun 17, 2021 · 0 comments

Comments

@huogerac
Copy link
Member

huogerac commented Jun 17, 2021

Problem: The container makes many calls to the save output (add_log) method which raises:

RuntimeError: CONTAINER EXEC ERROR: (psycopg2.DatabaseError) error with status PGRES_TUPLES_OK and no message from the libpq

the cause might be the multiprocessing is calling the service which uses the sqlalchemy which has an instance linked to the flask.app.

Links:

To study:

Options:

  • Rather than use multiprocessing inside Flask to call the run_task (execute command inside containers), it might be better idea use something aka celery.
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

1 participant