def __init__(self, client, store, emailer): self._client = client self._emailer = emailer self._data_builder = DataBuilder(store) self._owned_job_token = None self._name = get_unique_name() self._inspector = Inspector(client) # The lock synchronizes access to shared attributes between the worker # thread and the lease renewer thread. self._lock = threading.Lock() self._lease_renewer = None self._executor = None self._test_only_end_if_no_runnable = False