Skip to content

Save log (heaps) cause a concurrency problem #1

@huogerac

Description

@huogerac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions