buildman: let metric data live longer in etcd

This commit is contained in:
Evan Cordell 2016-10-04 14:22:48 -04:00
parent 768459ef86
commit 3542255db8

View file

@ -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)