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

JobAccountant workaround for StepChain jobs with duplicate files - wmagent 1.5.7 branch #10971

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
DBS3Upload: check error message from the response body attribute
amaltaro committed Jan 26, 2022
commit e6fb2b1a437445a519bfb3b45b747128afa90b97
2 changes: 1 addition & 1 deletion src/python/WMComponent/DBS3Buffer/DBSUploadPoller.py
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ def uploadWorker(workInput, results, dbsUrl):
dbsApi.insertBulkBlock(blockDump=block)
results.put({'name': name, 'success': "uploaded"})
except Exception as ex:
exString = str(ex)
exString = str(getattr(ex, "body", ex))
if 'Block %s already exists' % name in exString:
# Then this is probably a duplicate
# Ignore this for now