Merge pull request #2190 from charltonaustin/fix_staging_0
Fixing the ttl on etcd.
This commit is contained in:
commit
d6e14f170c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue