Steps to replicate the issue (include links if applicable):
- Load a jobs file
- Restart some jobs:
tools.multichill@tools-bastion-12:~$ toolforge jobs restart quality-image-add tools.multichill@tools-bastion-12:~$ toolforge jobs restart sdoc-cc-by-4.0 tools.multichill@tools-bastion-12:~$ toolforge jobs restart sdoc-cc-zero
- Check the jobs
tools.multichill@tools-bastion-12:~$ toolforge jobs list +-------------------+------------------+------------------------------------------+ | Job name: | Job type: | Status: | +-------------------+------------------+------------------------------------------+ | quality-image-add | schedule: @daily | Running for 35s | | sdoc-cc-by-4.0 | schedule: @daily | Running for 20s | | sdoc-cc-by-sa-4.0 | schedule: @daily | Running for 4h52m9s | | sdoc-cc-zero | schedule: @daily | Running for 3s | | wikidata-uploader | schedule: @daily | Last schedule time: 2024-05-03T18:52:00Z | +-------------------+------------------+------------------------------------------+
- Load the same jobs file
toolforge jobs load jobs.yml
- Check the jobs, all flushed:
tools.multichill@tools-bastion-12:~$ toolforge jobs list +-------------------+------------------+----------------------------+ | Job name: | Job type: | Status: | +-------------------+------------------+----------------------------+ | quality-image-add | schedule: @daily | Waiting for scheduled time | | sdoc-cc-by-4.0 | schedule: @daily | Waiting for scheduled time | | sdoc-cc-by-sa-4.0 | schedule: @daily | Waiting for scheduled time | | sdoc-cc-zero | schedule: @daily | Waiting for scheduled time | | wikidata-uploader | schedule: @daily | Waiting for scheduled time | +-------------------+------------------+----------------------------+
What happens?:
All jobs get flushed
What should have happened instead?:
Only the jobs that have been changed in the yml file should have been replaced
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
The jobs.yml is in /data/project/multichill on Toolforge