Page MenuHomePhabricator

Add a configurable delay before running labeling jobs for new uploads
Closed, ResolvedPublic

Description

Labeling jobs for newly uploaded files should be delayed by some amount of time to account for the frequency of new uploads being deleted. Sending immediately could result in wasted credits and/or inappropriate notifications for deleted files.

The proposed delay time for production is 48h.

This can be implemented as a jobParam when creating the labeling Job. The file's existence should be re-checked at the beginning of the job. If the file no longer exists, we can just bail out.

Event Timeline

Mholloway triaged this task as High priority.

Change 548540 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/extensions/MachineVision@master] Add a configurable delay before running labeling jobs for new uploads

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

Change 548540 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] Add a configurable delay before running labeling jobs for new uploads

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