container_broker 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1d863ef7a79cf23d92d509e16473a5fb717afbb4327adf8a7c60ff0ac5483f6
4
- data.tar.gz: 4afbefff24adf873548bfd36542d38ade60f6b8031f8a7de2274cc1820d9efbd
3
+ metadata.gz: 0c204c11219f22286a9902dca0b26b4cf3ffc41fdc2d6e0c8d9dfee7855e2b5f
4
+ data.tar.gz: a17d82880a1d2da75a4ca74541fecc8196a0155eb6e42c7750b7afa5b8067839
5
5
  SHA512:
6
- metadata.gz: 72276623eadee051da7078c9a203b1c5eb2ac4e82d826e1545deba5e8fba6273e6cd820b65507e76a2e34e4054701b5c893ddf9528c47079f5b790d6980973cf
7
- data.tar.gz: 5222da3fcf97e5fb7bb962c337e21e661cd3c6922f1eeb560e6d4e40d1c90ef3b6878dc2ca2f9d14c4a02bb6fae5bdc81a64f49b597dc47e51857f56015c7e30
6
+ metadata.gz: 240c3d43b3cef13f701099c8a5302f83c3e6018cd16ef1865828bd5ca7b53833692d3904dd0c21cfa5f99f78f4275b08eba9bf6a7059c6066f5d48a56e27ef67
7
+ data.tar.gz: c2721d3effc0a20f36fe07cbbfdd43fb161c7d0b18d8205eb4a9d4f55c90e17bca6451a27c67b355f643560c6cfe42e91db5984430d13be1949c334816e417e8
@@ -8,12 +8,14 @@ class StatusController < ApplicationController
8
8
  end
9
9
 
10
10
  def tasks
11
+ limit = params.fetch(:limit, LIMIT_TASKS).to_i
12
+
11
13
  @tasks = Task
12
14
  .only(Task.attribute_names - %w[logs])
13
15
  .includes(:slot)
14
16
  .order_by("created_at" => "desc")
15
- .batch_size(LIMIT_TASKS)
16
- .limit(LIMIT_TASKS)
17
+ .batch_size(limit)
18
+ .limit(limit)
17
19
 
18
20
  @tasks = @tasks.where(status: params[:status]) if params[:status].present?
19
21
  if params[:tags]
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Constants
4
4
  class ExecutionType
5
- FORMAT = /\A([a-z0-9])+(-[a-z0-9]+)*\z/.freeze
5
+ FORMAT = /\A([a-z0-9])+(-[a-z0-9]+)*\z/
6
6
  INVALID_FORMAT_MESSAGE = "only allows lowercase letters, numbers and hyphen symbol"
7
7
  end
8
8
 
@@ -16,7 +16,6 @@ require "idempotent-request"
16
16
  require "kubeclient"
17
17
  require "mongoid/uuid"
18
18
  require "mongoid_enumerable"
19
- require "redis-namespace"
20
19
  require "sentry-raven"
21
20
  require "sidekiq"
22
21
  require "sidekiq-failures"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContainerBroker
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: container_broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Lise
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-01-18 00:00:00.000000000 Z
13
+ date: 2021-01-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -164,20 +164,14 @@ dependencies:
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: 3.0.5
168
- - - "<"
169
- - !ruby/object:Gem::Version
170
- version: '3.2'
167
+ version: '0'
171
168
  type: :development
172
169
  prerelease: false
173
170
  version_requirements: !ruby/object:Gem::Requirement
174
171
  requirements:
175
172
  - - ">="
176
173
  - !ruby/object:Gem::Version
177
- version: 3.0.5
178
- - - "<"
179
- - !ruby/object:Gem::Version
180
- version: '3.2'
174
+ version: '0'
181
175
  - !ruby/object:Gem::Dependency
182
176
  name: spring
183
177
  requirement: !ruby/object:Gem::Requirement
@@ -332,20 +326,6 @@ dependencies:
332
326
  - - ">="
333
327
  - !ruby/object:Gem::Version
334
328
  version: '0'
335
- - !ruby/object:Gem::Dependency
336
- name: redis-namespace
337
- requirement: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
- type: :runtime
343
- prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - ">="
347
- - !ruby/object:Gem::Version
348
- version: '0'
349
329
  - !ruby/object:Gem::Dependency
350
330
  name: sentry-raven
351
331
  requirement: !ruby/object:Gem::Requirement
@@ -583,7 +563,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
583
563
  - !ruby/object:Gem::Version
584
564
  version: '0'
585
565
  requirements: []
586
- rubygems_version: 3.1.4
566
+ rubygems_version: 3.2.3
587
567
  signing_key:
588
568
  specification_version: 4
589
569
  summary: ContainerBroker