Merge pull request #2190 from charltonaustin/fix_staging_0

Fixing the ttl on etcd.
This commit is contained in:
Charlton Austin 2016-12-02 13:55:52 -05:00 committed by GitHub
commit d6e14f170c

View file

@ -30,7 +30,7 @@ class EtcdCanceller(object):
""" Writes etcd message to cancel build_uuid. """
logger.info("Cancelling build %s".format(build_uuid))
try:
self._etcd_client.write("{}{}".format(self._cancel_prefix, build_uuid), build_uuid, ttl=0)
self._etcd_client.write("{}{}".format(self._cancel_prefix, build_uuid), build_uuid, ttl=60)
return True
except etcd.EtcdException:
logger.exception("Failed to write to etcd client %s", build_uuid)