taskflow/doc/source
Joshua Harlow cea71f2799 Fix for WBE sporadic timeout of tasks
This fixes the sporadic of tasks that would happen
under certain circumstances. What happened was that
a new worker notification would be sent to a callback
while at the same time a task submission would come in
and there would be a small race period where the task
would insert itself into the requests cache while the
callback was processing.

So to work around this the whole concept of a requests
cache was revamped and now the WBE executor just maintains
its own local dictionary of ongoing requests and accesses
it safely.

During the on_wait function that is periodically called
by kombu the previous expiry of work happens but now any
requests that are pending are matched to any new workers
that may have appeared.

This avoids the race (and ensures that even if a new
worker is found but a submission is in progress that the
duration until that submission happens will only be until
the next on_wait call happens).

Related-Bug: #1431097

Change-Id: I98b0caeedc77ab2f7214847763ae1eb0433d4a78
2016-02-05 14:40:25 -08:00
..
img Use automaton's converters/pydot 2015-10-11 01:11:29 +00:00
templates docs: Relative links improvements 2014-03-13 12:05:57 +04:00
arguments_and_results.rst Fix seven typos and one readability on taskflow documentation 2015-07-27 06:48:00 +00:00
atoms.rst Add nicely made task structural diagram 2015-08-10 16:42:59 -07:00
conductors.rst Add a executor backed conductor and have existing impl. use it 2015-11-12 17:03:00 -08:00
conf.py Replace deprecated library function os.popen() with subprocess 2016-01-13 23:38:19 +08:00
engines.rst Allow for alterations in decider 'area of influence' 2016-01-09 22:42:17 -08:00
examples.rst Merge "Add indestructible 99 bottles of beer example" 2015-06-29 02:55:01 +00:00
exceptions.rst docs: Add inheritance diagram to exceptions documentation 2014-03-17 12:29:34 +04:00
history.rst Add history.rst that uses generated 'ChangeLog' file 2015-06-23 17:15:36 -07:00
index.rst Rename 'history' -> 'Release notes' 2015-09-25 08:12:34 -07:00
inputs_and_outputs.rst Clarify documentation related to inputs 2015-02-11 14:53:28 -08:00
jobs.rst Retrieve the store from flowdetails as well, if it exists 2016-01-25 15:04:34 -06:00
notifications.rst Fix bad sphinx module reference 2015-10-05 17:17:42 -07:00
patterns.rst Allow for alterations in decider 'area of influence' 2016-01-09 22:42:17 -08:00
persistence.rst Fix busted stevedore doc(s) link 2015-08-07 09:03:38 -07:00
resumption.rst Rename logbook module -> models module 2015-07-08 17:04:35 -07:00
shelf.rst Add a bookshelf developer section 2015-03-05 08:31:12 -08:00
states.rst Add ability to reset an engine via a `reset` method 2015-07-18 11:13:36 -07:00
types.rst Fix for WBE sporadic timeout of tasks 2016-02-05 14:40:25 -08:00
utils.rst Replace the tree 'pformat()' recursion with non-recursive variant 2015-07-27 11:20:39 -07:00
workers.rst Fix seven typos and one readability on taskflow documentation 2015-07-27 06:48:00 +00:00