Skip to content

Commit

Permalink
Wait for services to finish before branching a package
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Aug 1, 2023
1 parent cfa1221 commit 660aae0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/app/models/workflow/step/branch_package_step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def create_branched_package
end

begin
# Service running on package avoids branching it: wait until services finish
Backend::Api::Sources::Package.wait_service(source_project_name, source_package_name)

BranchPackage.new({ project: source_project_name, package: source_package_name,
target_project: target_project_name,
target_package: target_package_name }).branch
Expand Down

0 comments on commit 660aae0

Please sign in to comment.