From 3542255db842a36bcf8f1b778f0f48a970a93ee0 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Tue, 4 Oct 2016 14:22:48 -0400 Subject: [PATCH] buildman: let metric data live longer in etcd --- buildman/manager/ephemeral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildman/manager/ephemeral.py b/buildman/manager/ephemeral.py index f781116fd..460b777ad 100644 --- a/buildman/manager/ephemeral.py +++ b/buildman/manager/ephemeral.py @@ -504,7 +504,7 @@ class EphemeralBuilderManager(BaseManager): }) try: yield From(self._etcd_client.write(self._etcd_metric_key(realm), metric_spec, prevExist=False, - ttl=setup_time)) + ttl=machine_max_expiration + 10)) except (KeyError, etcd.EtcdKeyError): logger.error('Realm %s already exists in etcd for job %s ' + 'UUID collision or something is very very wrong.', realm, build_uuid)