Skip to content
Snippets Groups Projects
Select Git revision
  • v15.0.0-ee
  • v14.10.3-ee
  • v15.0.0-rc44-ee
  • v15.0.0-rc43-ee
  • v15.0.0-rc42-ee
  • v14.10.2-ee
  • v14.8.6-ee
  • v14.9.4-ee
  • v14.10.1-ee
  • v14.10.0-ee
  • v14.10.0-rc42-ee
  • v14.9.3-ee
  • v14.6.7-ee
  • v14.7.7-ee
  • v14.8.5-ee
  • v14.9.2-ee
  • v14.7.6-ee
  • v14.9.1-ee
  • v14.9.0-ee
  • v14.9.0-rc42-ee
20 results
An error occurred while fetching branches. Retry the search.

build.rb

Forked from GitLab.org / GitLab
Source project has a limited visibility.
  • Furkan Ayhan's avatar
    b14c9af4
    Allow cross-db transaction for Build#drop_with_exit_code! · b14c9af4
    Furkan Ayhan authored
    When dropping a build with this method, it wraps the execution with
    a transaction.
    
    If this build;
    - Configured as auto-retry
    - Has a pipeline related to an MR
    - Has a TODO with that MR
    Then Ci::RetryBuildService;
    - Retries the job
    - Closes the TODO
    
    And those two updates should not be in a single transaction because
    they refer to different DBs.
    
    The next step is to remove this cross-db transaction.
    b14c9af4
    History
    Allow cross-db transaction for Build#drop_with_exit_code!
    Furkan Ayhan authored
    When dropping a build with this method, it wraps the execution with
    a transaction.
    
    If this build;
    - Configured as auto-retry
    - Has a pipeline related to an MR
    - Has a TODO with that MR
    Then Ci::RetryBuildService;
    - Retries the job
    - Closes the TODO
    
    And those two updates should not be in a single transaction because
    they refer to different DBs.
    
    The next step is to remove this cross-db transaction.