<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/taskflow.git/taskflow/task.py, branch 5.0.0</title>
<subtitle>opendev.org: openstack/taskflow.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/'/>
<entry>
<title>Remove six</title>
<updated>2022-05-18T07:12:37+00:00</updated>
<author>
<name>Takashi Kajinami</name>
<email>tkajinam@redhat.com</email>
</author>
<published>2022-05-17T13:56:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=44f17d005ff53008144ca7c509bcb1307d66b23f'/>
<id>44f17d005ff53008144ca7c509bcb1307d66b23f</id>
<content type='text'>
This library no longer supports Python 2, thus usage of six can be
removed. This also removes workaround about pickle library used in
Python 2 only.

Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This library no longer supports Python 2, thus usage of six can be
removed. This also removes workaround about pickle library used in
Python 2 only.

Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
</pre>
</div>
</content>
</entry>
<entry>
<title>python3.0 has deprecated LOG.warn</title>
<updated>2017-03-07T09:29:26+00:00</updated>
<author>
<name>xhzhf</name>
<email>guoyongxhzhf@163.com</email>
</author>
<published>2016-12-18T00:30:51+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=4e0125e4e52e67af0bf1bd84244fb6cb80e09abf'/>
<id>4e0125e4e52e67af0bf1bd84244fb6cb80e09abf</id>
<content type='text'>
python3.0 has deprecated LOG.warn
https://docs.python.org/3/library/logging.html#logging.warning
Closes-Bug: #1650843

Change-Id: Ib8473cbdb84547f385e619fe08ed723b1ee7bcdb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
python3.0 has deprecated LOG.warn
https://docs.python.org/3/library/logging.html#logging.warning
Closes-Bug: #1650843

Change-Id: Ib8473cbdb84547f385e619fe08ed723b1ee7bcdb
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow for revert to have a different argument list from execute</title>
<updated>2016-02-26T19:45:33+00:00</updated>
<author>
<name>Greg Hill</name>
<email>greg.hill@rackspace.com</email>
</author>
<published>2016-01-21T14:20:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=e8d78e7aab7ed9c1180d9947ef484573eac1f606'/>
<id>e8d78e7aab7ed9c1180d9947ef484573eac1f606</id>
<content type='text'>
Also allows for people to create Atom's with a different rebind
or requires structure for the revert method, if desired.

Implements blueprint: seperate-revert-args

Change-Id: Ie7d13c8000ef08ff303481d486d1ba1cfbdeea44
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also allows for people to create Atom's with a different rebind
or requires structure for the revert method, if desired.

Implements blueprint: seperate-revert-args

Change-Id: Ie7d13c8000ef08ff303481d486d1ba1cfbdeea44
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor Atom/BaseTask/Task/Retry class hierarchy</title>
<updated>2016-02-19T03:58:59+00:00</updated>
<author>
<name>Greg Hill</name>
<email>greg.hill@rackspace.com</email>
</author>
<published>2016-01-13T19:47:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=ec26bbffc6985792d4502ac9f4d4cb0960b16832'/>
<id>ec26bbffc6985792d4502ac9f4d4cb0960b16832</id>
<content type='text'>
* Moved common argument mapping logic to Atom
* Removed BaseTask
* Removed duplicated logic from subclasses

Change-Id: I275745adb80cecb0c35c1230eac76436bf3b0157
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Moved common argument mapping logic to Atom
* Removed BaseTask
* Removed duplicated logic from subclasses

Change-Id: I275745adb80cecb0c35c1230eac76436bf3b0157
</pre>
</div>
</content>
</entry>
<entry>
<title>Use compatible map and update map/reduce task docs</title>
<updated>2015-03-14T04:14:30+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-03-14T04:11:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=ac2b1be981e348677e27237170eaf79e6eaac037'/>
<id>ac2b1be981e348677e27237170eaf79e6eaac037</id>
<content type='text'>
Instead of using the map() function (which depending
on the python version may return a list or an iterator
prefer to use the six.moves provided one and convert
that one to a list; this avoids creating extra lists
on versions of python where map() itself returns a
list).

This also adjusts some of the docstring to match the
style and format of other docstrings.

Change-Id: I29212016da95da6ca2bc6b3f103d03f7fcabf032
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using the map() function (which depending
on the python version may return a list or an iterator
prefer to use the six.moves provided one and convert
that one to a list; this avoids creating extra lists
on versions of python where map() itself returns a
list).

This also adjusts some of the docstring to match the
style and format of other docstrings.

Change-Id: I29212016da95da6ca2bc6b3f103d03f7fcabf032
</pre>
</div>
</content>
</entry>
<entry>
<title>Added a map and a reduce task</title>
<updated>2015-03-12T19:22:06+00:00</updated>
<author>
<name>Min Pae</name>
<email>sputnik13@gmail.com</email>
</author>
<published>2015-02-20T06:20:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=0a2928f810172e406579059291427b9ddecf843a'/>
<id>0a2928f810172e406579059291427b9ddecf843a</id>
<content type='text'>
- Added a MapFunctorTask and ReduceFunctorTask to mimic the python
  builtin functions map and reduce, respectively

Change-Id: I29cd1249e1671aedfd2d25460d746b8d2154df2b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Added a MapFunctorTask and ReduceFunctorTask to mimic the python
  builtin functions map and reduce, respectively

Change-Id: I29cd1249e1671aedfd2d25460d746b8d2154df2b
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch to using 'oslo_utils' vs 'oslo.utils'</title>
<updated>2015-01-15T07:56:11+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-01-11T04:34:10+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=d748db934a0348da3f1f5b86e61e0b5ca9d2b69a'/>
<id>d748db934a0348da3f1f5b86e61e0b5ca9d2b69a</id>
<content type='text'>
Prefer the non-deprecated 'oslo_utils' instead of
the namespaced 'oslo.utils' wherever it was previously
used.

Change-Id: I9a78150ef5266e1ff22147278162fe3cfe1b2e3f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prefer the non-deprecated 'oslo_utils' instead of
the namespaced 'oslo.utils' wherever it was previously
used.

Change-Id: I9a78150ef5266e1ff22147278162fe3cfe1b2e3f
</pre>
</div>
</content>
</entry>
<entry>
<title>Move over to using oslo.utils [reflection, uuidutils]</title>
<updated>2014-12-18T21:55:41+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2014-12-09T02:58:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=4e514f41e57983e728db9025126df6f791a2594a'/>
<id>4e514f41e57983e728db9025126df6f791a2594a</id>
<content type='text'>
The reflection module is now part of oslo.utils so we should
remove our local version and use that version instead; this
also goes for the uuidutils module which is now part of
oslo.utils as well so we no longer need our local version
copied from the incubator...

Note that one reflection method `find_subclasses` which was to
specific to taskflow is now moved to the misc utility module
instead of its prior home in the reflection module.

Change-Id: I069881c80b0b2916cc0c414992b80171f7eeb79f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reflection module is now part of oslo.utils so we should
remove our local version and use that version instead; this
also goes for the uuidutils module which is now part of
oslo.utils as well so we no longer need our local version
copied from the incubator...

Note that one reflection method `find_subclasses` which was to
specific to taskflow is now moved to the misc utility module
instead of its prior home in the reflection module.

Change-Id: I069881c80b0b2916cc0c414992b80171f7eeb79f
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the notifier type in the task class/module directly</title>
<updated>2014-12-14T03:09:03+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2014-12-12T23:57:53+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=1f4dd72e6e859f3820de5e68ece2d09c15a18b70'/>
<id>1f4dd72e6e859f3820de5e68ece2d09c15a18b70</id>
<content type='text'>
Instead of having code that is some what like the notifier
code we already have, but is duplicated and is slightly different
in the task class just move the code that was in the task class (and
doing similar actions) to instead now use a notifier that is directly
contained in the task base class for internal task triggering of
internal task events.

Breaking change: alters the capabilities of the task to process
notifications itself, most actions now must go through the task
notifier property and instead use that (update_progress still exists
as a common utility method, since it's likely the most common type
of notification that will be used).

Removes the following methods from task base class (as they are
no longer needed with a notifier attribute):

- trigger (replaced with notifier.notify)
- autobind (removed, not replaced, can be created by the user
            of taskflow in a simple manner, without requiring
            functionality in taskflow)
- bind (replaced with notifier.register)
- unbind (replaced with notifier.unregister)
- listeners_iter (replaced with notifier.listeners_iter)

Due to this change we can now also correctly proxy back events from
remote tasks to the engine for correct proxying back to the original
task.

Fixes bug 1370766

Change-Id: Ic9dfef516d72e6e32e71dda30a1cb3522c9e0be6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of having code that is some what like the notifier
code we already have, but is duplicated and is slightly different
in the task class just move the code that was in the task class (and
doing similar actions) to instead now use a notifier that is directly
contained in the task base class for internal task triggering of
internal task events.

Breaking change: alters the capabilities of the task to process
notifications itself, most actions now must go through the task
notifier property and instead use that (update_progress still exists
as a common utility method, since it's likely the most common type
of notification that will be used).

Removes the following methods from task base class (as they are
no longer needed with a notifier attribute):

- trigger (replaced with notifier.notify)
- autobind (removed, not replaced, can be created by the user
            of taskflow in a simple manner, without requiring
            functionality in taskflow)
- bind (replaced with notifier.register)
- unbind (replaced with notifier.unregister)
- listeners_iter (replaced with notifier.listeners_iter)

Due to this change we can now also correctly proxy back events from
remote tasks to the engine for correct proxying back to the original
task.

Fixes bug 1370766

Change-Id: Ic9dfef516d72e6e32e71dda30a1cb3522c9e0be6
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a tiny clamp helper to clamp the 'on_progress' value</title>
<updated>2014-12-14T01:13:07+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2014-12-13T07:03:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=cdfd8ece61c3340a3de73005ea7b44d0383223fd'/>
<id>cdfd8ece61c3340a3de73005ea7b44d0383223fd</id>
<content type='text'>
Add a misc.clamp function that will clamp a value to a given
range (it can also call a callback if clamping occurs). Use it
to clamp the progress value that was previously clamped with
a set of customized logic that can now be replaced with a more
generalized logic that can be shared.

Change-Id: I8369dbb61f73a60932d9e15c8b4d06db249ea38e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a misc.clamp function that will clamp a value to a given
range (it can also call a callback if clamping occurs). Use it
to clamp the progress value that was previously clamped with
a set of customized logic that can now be replaced with a more
generalized logic that can be shared.

Change-Id: I8369dbb61f73a60932d9e15c8b4d06db249ea38e
</pre>
</div>
</content>
</entry>
</feed>
