Commit graph

12 commits

Author SHA1 Message Date
GitLab Bot
d10a462fed Add latest changes from gitlab-org/gitlab@master 2019-12-16 12:07:43 +00:00
GitLab Bot
8cc5f27909 Add latest changes from gitlab-org/gitlab@master 2019-12-13 12:07:41 +00:00
Kamil Trzciński
133b9f4108 Fix race in forbid_sidekiq_in_transactions.rb
Current code uses module attribute which stores value
global instead of locally (thread locally). This results
in concurrent accesses to overwrite the each other values
2019-07-04 17:13:06 +02:00
Andrew Newdigate
84cb1bdaed Refactor inside_transaction? to Gitlab::Database
This is a small change to move AfterCommitQueue.inside_transaction?
to Gitlab::Database.inside_transaction? Since this change is required
by different changes which may not arrive in sequence, it's easier
to extract this change out on it's own.
2019-06-25 09:15:35 +00:00
Ash McKenzie
af9432643d Ensure we're using Rails, not Sidekiq::Rails 2018-05-04 15:58:18 +10:00
Bob Van Landuyt
5f7f5eda92 Method to track recoverable exceptions in sentry
This adds a method to track errors that can be recovered from in
sentry.

It is useful when debugging performance issues, or exceptions that are
hard to reproduce.
2018-04-17 11:39:23 +02:00
Tiago Botelho
477c83f6bb Ports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4747 to CE 2018-03-05 11:31:23 +00:00
Douwe Maan
16b8297e77 Execute project hooks and services after commit when moving an issue 2017-12-22 17:19:50 +01:00
Douwe Maan
1e6ca3c41e Consistently schedule Sidekiq jobs 2017-12-05 11:59:39 +01:00
Douwe Maan
103b5bf60b Fix keys seed 2017-06-02 12:37:57 -05:00
Douwe Maan
a9dbda8605 Allow scheduling from after_commit hooks 2017-06-02 11:43:32 -05:00
Yorick Peterse
4edb505bb6 Forbid Sidekiq scheduling in transactions
Scheduling jobs in transactions can lead to race conditions where a job
runs before a transaction has been committed. The added initializer
ensures the various Sidekiq scheduling methods raise an error when
called inside a transaction.

Fixes #27233
2017-06-02 11:43:32 -05:00