Skip to content

Commit bdda9b5

Browse files
committed
Fix timer
1 parent 7cfc70b commit bdda9b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/006-scheduling-and-automation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Tournament Scheduling & Preemption
22

33
Daily/Hourly Rules (UTC)
44

5-
Rookie: every hour except 16:00.
5+
Rookie: every 4 hours except 16:00.
66

77
Challenger: daily at 16:00, unless preempted by a higher grade that day/week.
88

services/app/apps/codebattle/lib/codebattle/tournament/upcoming_runner.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ defmodule Codebattle.Tournament.UpcomingRunner do
77
alias Codebattle.Tournament
88

99
@tournament_run_upcoming Application.compile_env(:codebattle, :tournament_run_upcoming)
10-
@worker_timeout 30_000
10+
@worker_timeout :timer.seconds(30)
1111

12-
@upcoming_time_before_live_mins 10_000
12+
@upcoming_time_before_live_mins 5
1313

1414
@spec start_link([]) :: GenServer.on_start()
1515
def start_link(_) do

0 commit comments

Comments
 (0)