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

Retry limit asset tasks on key constraint violations #2360

Merged

Conversation

Martchus
Copy link
Contributor

Make t/37-limit_assets.t independent of t/14-grutasks.t


Retry limit asset job on key constraint violations

These errors are mostly caused by race conditions but we want to avoid locking the tables, see https://progress.opensuse.org/issues/57287#note-3.

Note that none of the logic within the try block changed.

These errors are mostly caused by race conditions but we
want to avoid locking the tables, see
https://progress.opensuse.org/issues/57287#note-3.

Note that none of the logic within the try block changed.
@codecov
Copy link

codecov bot commented Sep 30, 2019

Codecov Report

Merging #2360 into master will increase coverage by 0.07%.
The diff coverage is 90.9%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2360      +/-   ##
==========================================
+ Coverage   86.93%   87.01%   +0.07%     
==========================================
  Files         168      168              
  Lines       11184    11191       +7     
==========================================
+ Hits         9723     9738      +15     
+ Misses       1461     1453       -8
Impacted Files Coverage Δ
lib/OpenQA/Task/Asset/Limit.pm 94.33% <90.9%> (+0.86%) ⬆️
lib/OpenQA/Worker/CommandHandler.pm 79.82% <0%> (+1.75%) ⬆️
lib/OpenQA/Worker/WebUIConnection.pm 80.95% <0%> (+2.85%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 41b97db...ce52281. Read the comment docs.

@okurz okurz merged commit 7d662d3 into os-autoinst:master Oct 1, 2019
coolo pushed a commit that referenced this pull request Oct 1, 2019
commit 7d662d3
Merge: 683ca66 ce52281
Author:     Oliver Kurz <okurz@suse.de>
AuthorDate: Tue Oct 1 06:22:53 2019 +0200
Commit:     GitHub <noreply@github.com>
CommitDate: Tue Oct 1 06:22:53 2019 +0200

    Merge pull request #2360 from Martchus/retry-on-limit-asset-constraint-violation

    Retry limit asset tasks on key constraint violations
@Martchus Martchus deleted the retry-on-limit-asset-constraint-violation branch October 1, 2019 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants