Skip to content

Commit

Permalink
WatchDog
Browse files Browse the repository at this point in the history
Removing WatchDog rebuild.

Signed-off-by: Rodrigo Nardi <[email protected]>
  • Loading branch information
RodrigoMNardi committed Jan 8, 2025
1 parent bdaecf0 commit 7b8d530
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/github/update_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,6 @@ def update_status
[500, 'Internal Server Error']
end

def create_timeout_worker
Delayed::Job.where('handler LIKE ?', "%TimeoutExecution%args%-%#{@check_suite.id}%").delete_all

logger(Logger::INFO, "CiJobStatus::Update: TimeoutExecution for '#{@check_suite.id}'")

TimeoutExecution
.delay(run_at: 2.hours.from_now.utc, queue: 'timeout_execution')
.timeout(@check_suite.id)
end

def insert_new_delayed_job
queue = @job.check_suite.pull_request.github_pr_id % 10

Expand Down

0 comments on commit 7b8d530

Please sign in to comment.