[builder_oracle] Time out tasks that are waiting for over an hour
If the simulation gets backed up with task requests, the performance
gets worse and worse for each subsequent day that passes as more tasks
are enqueued and iterated over, we should time out tasks and remove them
from the waiting queue. This mirrors what happens in actual swarming
(albeit with custom timeouts)
Change-Id: I84cd39fbcbd87c9b2aea8db3896ce906477aab00
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/677206
Commit-Queue: Catherine Duncan <catduncan@google.com>
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
4 files changed