taskflow 6.0.1__py3-none-any.whl → 6.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,16 +121,12 @@ class ExecutorConductor(base.Conductor, metaclass=abc.ABCMeta):
121
121
  " it has not been")
122
122
 
123
123
  def stop(self):
124
- """Requests the conductor to stop dispatching.
125
-
126
- This method can be used to request that a conductor stop its
127
- consumption & dispatching loop.
128
-
129
- The method returns immediately regardless of whether the conductor has
130
- been stopped.
131
- """
132
124
  self._wait_timeout.interrupt()
133
125
 
126
+ # Inherit the docs, so we can reference them in our class docstring,
127
+ # if we don't do this sphinx gets confused...
128
+ stop.__doc__ = base.Conductor.stop.__doc__
129
+
134
130
  @property
135
131
  def dispatching(self):
136
132
  """Whether or not the dispatching loop is still dispatching."""
@@ -342,14 +338,8 @@ class ExecutorConductor(base.Conductor, metaclass=abc.ABCMeta):
342
338
  run.__doc__ = base.Conductor.run.__doc__
343
339
 
344
340
  def wait(self, timeout=None):
345
- """Waits for the conductor to gracefully exit.
346
-
347
- This method waits for the conductor to gracefully exit. An optional
348
- timeout can be provided, which will cause the method to return
349
- within the specified timeout. If the timeout is reached, the returned
350
- value will be ``False``, otherwise it will be ``True``.
351
-
352
- :param timeout: Maximum number of seconds that the :meth:`wait` method
353
- should block for.
354
- """
355
341
  return self._dead.wait(timeout)
342
+
343
+ # Inherit the docs, so we can reference them in our class docstring,
344
+ # if we don't do this sphinx gets confused...
345
+ wait.__doc__ = base.Conductor.wait.__doc__
@@ -161,6 +161,30 @@ class Conductor(metaclass=abc.ABCMeta):
161
161
  forever and/or until stopped).
162
162
  """
163
163
 
164
+ @abc.abstractmethod
165
+ def stop(self):
166
+ """Requests the conductor to stop dispatching.
167
+
168
+ This method can be used to request that a conductor stop its
169
+ consumption & dispatching loop.
170
+
171
+ The method returns immediately regardless of whether the conductor has
172
+ been stopped.
173
+ """
174
+
175
+ @abc.abstractmethod
176
+ def wait(self, timeout=None):
177
+ """Waits for the conductor to gracefully exit.
178
+
179
+ This method waits for the conductor to gracefully exit. An optional
180
+ timeout can be provided, which will cause the method to return
181
+ within the specified timeout. If the timeout is reached, the returned
182
+ value will be ``False``, otherwise it will be ``True``.
183
+
184
+ :param timeout: Maximum number of seconds that the :meth:`wait` method
185
+ should block for.
186
+ """
187
+
164
188
  @abc.abstractmethod
165
189
  def _dispatch_job(self, job):
166
190
  """Dispatches a claimed job for work completion.
@@ -9,6 +9,7 @@ Ann Taraday <akamyshnikova@mirantis.com>
9
9
  Atsushi SAKAI <sakaia@jp.fujitsu.com>
10
10
  Balaji Narayanan <lists@balajin.net>
11
11
  Ben Nemec <bnemec@redhat.com>
12
+ Brett Delle Grazie <brett.dellegrazie@gmail.com>
12
13
  Brian Jarrett <celttechie@gmail.com>
13
14
  ChangBo Guo(gcb) <eric.guo@easystack.cn>
14
15
  Changbin Liu <changbl@research.att.com>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: taskflow
3
- Version: 6.0.1
3
+ Version: 6.0.2
4
4
  Summary: Taskflow structured state management library.
5
5
  Home-page: https://docs.openstack.org/taskflow/latest/
6
6
  Author: OpenStack
@@ -12,10 +12,10 @@ taskflow/task.py,sha256=fIuU3ZCZ9Jpyy3may5RRBy_lpYdX1wdwLL31_l7paxs,9710
12
12
  taskflow/test.py,sha256=PlnbxD6ZOtPbPyot2GRUfW4aFSgeo9GGVI_tnfzYiRk,9303
13
13
  taskflow/version.py,sha256=z1GVMw0Q7jeoGINS9HvB_UGESUuP2TTB5L2NnT2NNMA,1070
14
14
  taskflow/conductors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- taskflow/conductors/base.py,sha256=JqVGMdYYarAEdyU2OW_6jg-_AYkDkhyIeBwdqoqJ7Yo,7299
15
+ taskflow/conductors/base.py,sha256=iXYyuh2xvnDZDpZtkMbgwmUGmINjg0tWISXY2IwfY9k,8161
16
16
  taskflow/conductors/backends/__init__.py,sha256=42RGlkHzNlj__uv9bNEZOIrf4iwc6vhfjmqpWGm8Gp0,1609
17
17
  taskflow/conductors/backends/impl_blocking.py,sha256=MPSz-pL9VFo-vIGtmYs7aWHCO5OCsh8uTAsmx2Sbdhk,1468
18
- taskflow/conductors/backends/impl_executor.py,sha256=VlI5dscCFSlmmG9zZbwWwYyxJ4rR2SQJRGOT_vlG26c,15074
18
+ taskflow/conductors/backends/impl_executor.py,sha256=BO3tp2RIA_CTT4zYKEY5UbYDpVhC9U8ee_WXjBEYsac,14658
19
19
  taskflow/conductors/backends/impl_nonblocking.py,sha256=IzJI8zyjORNy0s0CTa6SwLwW7688JOzDeQdRfUUBKxc,2963
20
20
  taskflow/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  taskflow/engines/__init__.py,sha256=q89egnng6p5ns41ok8J-lZ0TgYvIwCulc-EnDhxno8Q,1372
@@ -233,11 +233,11 @@ taskflow/utils/persistence_utils.py,sha256=butzDfSRKoy22Z9Jt92xzDGfabNKxu2kSRgI5
233
233
  taskflow/utils/redis_utils.py,sha256=gT1xPpV8uXMaQxGWqtpgigHbx4rJijzl329R1r4RDxM,4297
234
234
  taskflow/utils/schema_utils.py,sha256=BwZmYjLMC7N2rbx53Z1zREP4jaRQyRNYYOLCFf3Rrkk,1409
235
235
  taskflow/utils/threading_utils.py,sha256=wdLhE2HvEQsnO8oKcjOXHRqY-dIJgSxZVX6YW6W6qfo,5816
236
- taskflow-6.0.1.dist-info/AUTHORS,sha256=WvZWwtKE3NpQerTymaWGoTlVa6zh4KfYlWvEXsJv1PE,4608
237
- taskflow-6.0.1.dist-info/LICENSE,sha256=0t4vVm0tDgtQn7DqH6Nmn0kGSrHeIcV0U8qzdQojTo8,10143
238
- taskflow-6.0.1.dist-info/METADATA,sha256=_zHJQsfhRuZxAY795gyZHXoXHrWtTRSZDsZdxLsmfYw,5576
239
- taskflow-6.0.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
240
- taskflow-6.0.1.dist-info/entry_points.txt,sha256=-cLcvncQdUIhZ0pSd10UBTItZsJxlgu1uQIhkcpzh4Y,1235
241
- taskflow-6.0.1.dist-info/pbr.json,sha256=3X-WWXQHfTfVjIcORiKTlWOOn2jQxu640Y953ok-9Io,47
242
- taskflow-6.0.1.dist-info/top_level.txt,sha256=PsdN41vwysesDlqHCSVVXH4mkTMdMiZFW_yHEAXiZE4,9
243
- taskflow-6.0.1.dist-info/RECORD,,
236
+ taskflow-6.0.2.dist-info/AUTHORS,sha256=TGQ-WyY9028CM7-dVhMAXfzgAdYc9Wt0BzNq3dBqFY8,4657
237
+ taskflow-6.0.2.dist-info/LICENSE,sha256=0t4vVm0tDgtQn7DqH6Nmn0kGSrHeIcV0U8qzdQojTo8,10143
238
+ taskflow-6.0.2.dist-info/METADATA,sha256=PdQWKmRBH6FMmb9HaRXRuQ7huocPr2XRSWcckViSgSI,5576
239
+ taskflow-6.0.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
240
+ taskflow-6.0.2.dist-info/entry_points.txt,sha256=-cLcvncQdUIhZ0pSd10UBTItZsJxlgu1uQIhkcpzh4Y,1235
241
+ taskflow-6.0.2.dist-info/pbr.json,sha256=YLorQQNmGkwJt5Yhf5QX8IoU_AKOiPtDgTGY1dn6grc,47
242
+ taskflow-6.0.2.dist-info/top_level.txt,sha256=PsdN41vwysesDlqHCSVVXH4mkTMdMiZFW_yHEAXiZE4,9
243
+ taskflow-6.0.2.dist-info/RECORD,,
@@ -0,0 +1 @@
1
+ {"git_version": "bad7ab98", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "d01920ef", "is_release": true}