deployer package¶
Subpackages¶
Submodules¶
deployer.celery module¶
deployer.util module¶
General utility methods
-
exception
deployer.util.
InvalidInterval
(interval)[source]¶ Bases:
exceptions.Exception
Exception corresponding to invalid time interval.
-
exception
deployer.util.
TimeoutError
[source]¶ Bases:
exceptions.Exception
Error corresponding to timeout of a function use with @timeout annotation.
-
deployer.util.
dict_merge
(*dictionaries)[source]¶ Performs nested merge of multiple dictionaries. The values from dictionaries appearing first takes precendence
Parameters: dictionaries – List of dictionaries that needs to be merged. Returns: merged dictionary :rtype
-
deployer.util.
retry
(tries, delay=3, backoff=2, except_on=(<type 'exceptions.Exception'>, ))[source]¶ Retries a function or method until it returns True. delay sets the initial delay in seconds, and backoff sets the factor by which the delay should lengthen after each failure. tries must be at least 0, and delay greater than 0.