Actions
Feature #65016
opendeadline support in teuthology
% Done:
0%
Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Description
(meta note: I'm assigning this to myself but I'm happy to relinquish this to someone that wants to work on it.)
Add a switch to teuthology-suite which attaches a deadline datetime to all jobs scheduled for the run. Like:
teuthology-suite --deadline <days:hours:minutes> ...
The syntax is designed to work well for parsing with datetime.strptime, like:
from datetime import datetime, timedelta input = "5:23:00" t = datetime.strptime(input,"%d:%H:%M") delta = timedelta(days=t.day, hours=t.hour, minutes=t.minute, seconds=t.second)
Anyway, attach that deadline to the job metadata. Have paddles automatically move jobs exceeding their deadline to a new "expired" state or similar. That should be doable with a sqlalchemy trigger or just when we lookup the next job in the queue.
No data to display
Actions