summaryrefslogtreecommitdiff
path: root/zuul/cmd
diff options
context:
space:
mode:
authorDavid Shrewsbury <dshrewsb@redhat.com>2019-06-06 16:16:03 -0400
committerDavid Shrewsbury <dshrewsb@redhat.com>2019-09-18 10:09:08 -0400
commit9f5743366dd699b573db90f9e4d8937a432c28f3 (patch)
treeff5c028ddf897d5d067facb1cad8edc5c3777aa6 /zuul/cmd
parent6bbf3609bba41422861e8e64a94931d7183873bf (diff)
downloadzuul-9f5743366dd699b573db90f9e4d8937a432c28f3.tar.gz
Auto-delete expired autohold requests
When a request is created with a node expiration, set a request expiration for 24 hours after the nodes expire. Change-Id: I0fbf59eb00d047e5b066d2f7347b77a48f8fb0e7
Diffstat (limited to 'zuul/cmd')
-rwxr-xr-xzuul/cmd/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/zuul/cmd/client.py b/zuul/cmd/client.py
index fe0f9e373..d60558f49 100755
--- a/zuul/cmd/client.py
+++ b/zuul/cmd/client.py
@@ -468,6 +468,7 @@ class Client(zuul.cmd.ZuulApp):
print("Max Count: %s" % request['max_count'])
print("Current Count: %s" % request['current_count'])
print("Node Expiration: %s" % request['node_expiration'])
+ print("Request Expiration: %s" % time.ctime(request['expired']))
print("Reason: %s" % request['reason'])
print("Held Nodes: %s" % request['nodes'])