Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Jan 24, 2024
1 parent c8f9bd9 commit a3bd407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/lib/ci/queue/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def initialize(
grind_count: nil, max_duration: nil, failure_file: nil, max_test_duration: nil,
max_test_duration_percentile: 0.5, track_test_duration: false, max_test_failed: nil,
queue_init_timeout: nil, redis_ttl: 8 * 60 * 60, report_timeout: nil, inactive_workers_timeout: nil,
export_flaky_tests_file: nil, warnings_file: nil, debug_log: nil, max_missed_heartbeat_seconds: 10)
export_flaky_tests_file: nil, warnings_file: nil, debug_log: nil, max_missed_heartbeat_seconds: 15)
@build_id = build_id
@circuit_breakers = [CircuitBreaker::Disabled]
@failure_file = failure_file
Expand Down
1 change: 1 addition & 0 deletions ruby/lib/ci/queue/redis/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def soft_signal(sig)
end
LUA
def process_tick!(id:)
logger.info("Tick: #{id}")
@script ||= @redis.script(:load, HEARTBEAT_SCRIPT)
@redis.evalsha(@script, keys: [@zset_key, @processed_key], argv: [Time.now.to_f, id])
end
Expand Down

0 comments on commit a3bd407

Please sign in to comment.