Skip to content

Don't start the JobWatcher thread in the Bots instance's Scheduler

Before raising this MR, consider whether the following are required, and complete if so:

  • Unit tests
  • Metrics
  • Documentation update(s)

If not required, please explain in brief why not.

Description

This MR updates the Scheduler to make starting the JobWatcher thread optional, and disables starting the thread when in the Bots service's Scheduler. The Bots service doesn't use the JobWatcher thread, so having it running there is just a waste of resources.

Validation

Execute a command using BuildGrid

docker-compose up --build --detach
tox -e venv -- bgd execute command ./buildgrid ls

Merge request reports