mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
21515f3c23
commit
0127012ed3
1 changed files with 7 additions and 1 deletions
|
@ -171,7 +171,13 @@ def save_load(jid, load):
|
|||
(`jid`, `load`)
|
||||
VALUES (%s, %s)'''
|
||||
|
||||
cur.execute(sql, (jid, json.dumps(load)))
|
||||
try:
|
||||
cur.execute(sql, (jid, json.dumps(load)))
|
||||
except MySQLdb.IntegrityError:
|
||||
# https://github.com/saltstack/salt/issues/22171
|
||||
# Without this try:except: we get tons of duplicate entry errors
|
||||
# which result in job returns not being stored properly
|
||||
pass
|
||||
|
||||
|
||||
def get_load(jid):
|
||||
|
|
Loading…
Add table
Reference in a new issue