Commit Graph

10 Commits

Author SHA1 Message Date
Kamil Trzciński a5f6182753 Optimise build queue service
This makes BuildQueueService to force refresh runners
that are considered to have recent queue.

Such runners are the ones that connected within online
interval + time to expire runner cache.
2019-08-22 13:51:53 +02:00
Thong Kuah 85b29c1c2f Add frozen_string_literal to spec/services
Probably useful as we often move these files to "new" files.
2019-04-12 10:14:54 +12:00
Dylan Griffith d9251f2ea0 Fix specs api/runners_spec.rb, api/v3/runners_spec.rb update_build_queue_service_spec.rb 2018-05-31 10:56:41 +02:00
Kamil Trzciński 051f385e7e Refactor validations and make runner factory by default to be instance-wide runner 2018-05-31 10:56:07 +02:00
Dylan Griffith ab489d293d Improve runner_type validations for Ci::Runner 2018-05-31 10:46:19 +02:00
Alexis Reigel d8675bd45f
select group runners also in build queue service 2018-04-23 09:21:48 +02:00
Rémy Coutable ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Robert Speicher a6ec5121f0 Correct RSpec/SingleLineHook cop offenses 2017-06-14 13:18:56 -05:00
Robert Speicher ca9a79f620 Use `:empty_project` where possible in service specs 2017-03-27 20:44:09 -04:00
Grzegorz Bizon a5ab418c37 Add missing specs for update build queue service 2017-01-20 14:32:32 +01:00