gpt4 book ai didi

同一阶段的 Gitlab 管道作业未并行运行

转载 作者:行者123 更新时间:2023-12-03 13:48:24 25 4
gpt4 key购买 nike

我们在同一阶段有 4 个可以并发运行的部署作业。来自 Gitlab 文档:

The ordering of elements in stages defines the ordering of jobs' execution:

  1. Jobs of the same stage are run in parallel.

  2. Jobs of the next stage are run after the jobs from the previous stage complete successfully.


然而,发生的情况是一次只有一个作业运行,而其他作业则保持挂起。为了让它并行执行,我是否还需要做其他事情。我正在使用一个运行器,它带有一个托管在 Ubuntu 16.04 实例上的 shell 执行器。

最佳答案

您的运行器应配置为启用并发作业(请参阅 https://docs.gitlab.com/runner/configuration/advanced-configuration.html)

concurrent = 4

或者您可能想要设置多个运行者。

关于同一阶段的 Gitlab 管道作业未并行运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46828150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com