ckan / ckan/datapusher

duplicate key value violates unique constraint on first start with wsgi workers/threads

Open
#249 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
82
Forks
157
PR merge metrics
No merged PRs in 30d

Description

If the database is not set and the first start of datapusher is done via wsgi with some workers/threads (as suggested by 'High availability setup') then just the first thread that tries to create the database succeeds and the rest fail with `duplicate key value violates unique constraint`.

If the number of threads and workers is reduced to 1 on first start then nothing breaks.

A possible fix for this would be to provide a command for database initialization like in CKAN

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.