Page MenuHomePhabricator

Add agent to disable/enable grid tools
Closed, ResolvedPublic

Description

We need a cronjob or agent or something which detects disabled tools (via pwdAccountLockedTime) stops and disables grid jobs.

To disable future grid launches:

# qconf -arqs <toolname>_disable
{
   name         <toolname>_disable
   description  disable <toolname>
   enabled      TRUE
   limit        users tools.<toolname> to slots=0
}

Deleting of existing running jobs is to be determined.

Event Timeline

Change 699927 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[cloud/toolforge@main] Add 'disable_tools.py', a catch-all project for disabling tools

https://gerrit.wikimedia.org/r/699927

Change 699927 abandoned by Andrew Bogott:

[cloud/toolforge@main] Add 'disable_tools.py', a catch-all project for disabling tools

Reason:

This is in a different repo

https://gerrit.wikimedia.org/r/699927

Change 706033 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] toolforge grid master: run disable_tool.py every 10 minutes

https://gerrit.wikimedia.org/r/706033

Change 706033 merged by Andrew Bogott:

[operations/puppet@production] toolforge grid master: run disable_tool.py every 10 minutes

https://gerrit.wikimedia.org/r/706033