Commit Graph

8 Commits

Author SHA1 Message Date
Denis Gukov
ac2132f290 fix(ci): capabilities 2021-03-13 01:20:18 +05:00
Anton Markelov
b60213aa88 remove task from queue if it failed (on prepare step) 2018-06-08 18:29:12 +10:00
Anton Markelov
a817d2d127 add requested changes, add some logging 2018-06-08 13:09:13 +10:00
Anton Markelov
087acb8ed4 remove collisions on prepareTask stage 2018-06-07 17:29:55 +10:00
tom whiston
17fa7bb407 add gometalinter to tools and run it in circle.
extract some error checking and logging in places where linting needed or errors not checked
2018-04-05 21:24:19 +00:00
Matej Kramny
56f22f9673
gofmt 2017-08-19 09:45:01 +01:00
Viktor Anderling
8bc1b7f2d2 Allow concurrency for tasks that does not collide
Two different concurrency modes are implemented, and is enabled by
setting "concurrency_mode" in the config file to either "project" or "node".

When "project" concurrency is enabled, tasks will run in parallel if and
only if they do not share the same project id, with no regard to the
nodes/hosts that are affected.

When "node" concurrency is enabled, a task will run in parallel if and
only if the hosts affected by tasks already running does not intersect
with the hosts that would be affected by the task in question.

If "concurrency_mode" is not specified, no task will start before the
previous one has finished.

The collision check is based on the output from the "--list-hosts"
argument to ansible, which uses the hosts specified in the inventory.
Thus, if two different hostnames are used that points to the same node,
such as "127.0.0.1" and "localhost", there will be no collision and two
tasks may connect to the same node concurrently. If this behaviour is
not desired, one should make sure to not include aliases for their hosts
in their inventories when enabling concurrency mode.

To restrict the amount of parallel tasks that runs at the same time, one
can add the "max_parallel_tasks" to the config file. This defaults to a
humble 10 if not specified.
2017-05-29 17:27:56 +02:00
Matej Kramny
c58d9ac34f refactoring 2016-05-24 10:55:48 +01:00