Project

General

Profile

Actions

Feature #65016

open

deadline support in teuthology

Added by Patrick Donnelly about 1 month ago.

Status:
New
Priority:
High
Category:
Core
% 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

Also available in: Atom PDF