linting
This commit is contained in:
parent
692426b13e
commit
771dd68cdf
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ module Ci
|
||||||
state_machine :status do
|
state_machine :status do
|
||||||
after_transition any => [:pending] do |build|
|
after_transition any => [:pending] do |build|
|
||||||
build.run_after_commit do
|
build.run_after_commit do
|
||||||
BuildQueueWorker.perform_async(id)
|
BuildQueueWorker.perform_async(id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ module Ci
|
||||||
|
|
||||||
last_update = Gitlab::Redis.with { |redis| redis.get(current_runner_redis_key)}
|
last_update = Gitlab::Redis.with { |redis| redis.get(current_runner_redis_key)}
|
||||||
|
|
||||||
if params[:last_update] != ""
|
if params[:last_update].present?
|
||||||
if :last_update == last_update
|
if params[:last_update] == last_update
|
||||||
headers 'X-GitLab-Last-Update', last_update
|
headers 'X-GitLab-Last-Update', last_update
|
||||||
return build_not_found!
|
return build_not_found!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue