postgres_local_cache causing 'IntegrityError: duplicate key value violates unique constraint "jids_pkey"' #54787
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
severity-low
4th level, cosemtic problems, work around exists
Milestone
Description of Issue
When using postgres master_job_cache, running any state fails with the following message.
Setup
https://docs.saltstack.com/en/latest/ref/returners/all/salt.returners.postgres_local_cache.html
Steps to Reproduce Issue
Just run any state
Versions Report
Possible Source
In utils/job.py, I changed the
if job_cache != 'local_cache'
to also check forpostgres_local_cache
and the errors went away and I was getting the return data I was looking for. However that feels like the wrong thing to do but maybe it gets us closer the the real source.The text was updated successfully, but these errors were encountered: