<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/taskflow.git/taskflow/jobs, branch 4.6.2</title>
<subtitle>opendev.org: openstack/taskflow.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/'/>
<entry>
<title>Add sentinel redis support</title>
<updated>2020-08-05T13:03:25+00:00</updated>
<author>
<name>Ann Taraday</name>
<email>akamyshnikova@mirantis.com</email>
</author>
<published>2020-07-28T13:29:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=f17252de50e857140c389f768caaff831e509ee7'/>
<id>f17252de50e857140c389f768caaff831e509ee7</id>
<content type='text'>
Redis client has an ability to connect to Redis server
using Sentinel[1] (especially important for Redis clusters),
but this ability was missing here.

Allow to pass 'sentinel' variable to Redis conf, extend
_make_client to use sentinel for that case.

[1] - https://github.com/andymccurdy/redis-py#sentinel-support

Change-Id: Ia8cc98e701435fd0231da3724f5d7108fc4f96f4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Redis client has an ability to connect to Redis server
using Sentinel[1] (especially important for Redis clusters),
but this ability was missing here.

Allow to pass 'sentinel' variable to Redis conf, extend
_make_client to use sentinel for that case.

[1] - https://github.com/andymccurdy/redis-py#sentinel-support

Change-Id: Ia8cc98e701435fd0231da3724f5d7108fc4f96f4
</pre>
</div>
</content>
</entry>
<entry>
<title>Update various links in docs</title>
<updated>2018-07-17T18:56:19+00:00</updated>
<author>
<name>Vu Cong Tuan</name>
<email>tuanvc@vn.fujitsu.com</email>
</author>
<published>2018-05-09T10:14:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=33685c83fc9ee3a09b8041f52fa6b5158b8ee541'/>
<id>33685c83fc9ee3a09b8041f52fa6b5158b8ee541</id>
<content type='text'>
Avoid redirects, s/http/https/.

Change-Id: Id03bd49f250b48109967a0e04b92b75925f08932
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid redirects, s/http/https/.

Change-Id: Id03bd49f250b48109967a0e04b92b75925f08932
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid log warning when closing is underway (on purpose)</title>
<updated>2017-08-01T11:28:26+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2016-03-18T05:48:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=c985dbb63de2b2890d1b4a050171195bbb123771'/>
<id>c985dbb63de2b2890d1b4a050171195bbb123771</id>
<content type='text'>
Related-Bug: #1557107

Change-Id: I8b2f327dadbf038cd050f05fbc46a428282a3d82
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related-Bug: #1557107

Change-Id: I8b2f327dadbf038cd050f05fbc46a428282a3d82
</pre>
</div>
</content>
</entry>
<entry>
<title>do not allow redis job reclaim by same owner</title>
<updated>2017-05-13T14:55:50+00:00</updated>
<author>
<name>Rick van de Loo</name>
<email>rickvandeloo@gmail.com</email>
</author>
<published>2017-05-13T14:55:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=5f3c1325239bace46c6adfe775f544467af44b03'/>
<id>5f3c1325239bace46c6adfe775f544467af44b03</id>
<content type='text'>
Running a nonblocking conductor or two conductors on the same host will re-execute the same job multiple times with the current implementation of 'claim' for the redis jobboard backend. This is different from the ZooKeeper jobboard backend, there the same owner of a job is not allowed to reclaim the job again (https://github.com/openstack/taskflow/blob/master/taskflow/jobs/backends/impl_zookeeper.py#L554). If the same owner is allowed to reclaim the job again there can be no concurrent execution on the same owner because all jobs will be re-claimed and re-executed by the same owner every pass as long as it's on the jobboard.

To reproduce this behavior:

- Use the redis jobboard backend
- Create a flow with a task that sleeps 10 seconds in the execute method
- Post that flow as a job
- Run a nonblocking conductor

It will claim and execute the same job multiple times in a loop until the first worker is finished and consumes the job. After this change it will not re-execute the same job multiple times.

Change-Id: I4f6c364211500e510fc496f23b03ce056771417d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Running a nonblocking conductor or two conductors on the same host will re-execute the same job multiple times with the current implementation of 'claim' for the redis jobboard backend. This is different from the ZooKeeper jobboard backend, there the same owner of a job is not allowed to reclaim the job again (https://github.com/openstack/taskflow/blob/master/taskflow/jobs/backends/impl_zookeeper.py#L554). If the same owner is allowed to reclaim the job again there can be no concurrent execution on the same owner because all jobs will be re-claimed and re-executed by the same owner every pass as long as it's on the jobboard.

To reproduce this behavior:

- Use the redis jobboard backend
- Create a flow with a task that sleeps 10 seconds in the execute method
- Post that flow as a job
- Run a nonblocking conductor

It will claim and execute the same job multiple times in a loop until the first worker is finished and consumes the job. After this change it will not re-execute the same job multiple times.

Change-Id: I4f6c364211500e510fc496f23b03ce056771417d
</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://git.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>Some classes not define __ne__() built-in function</title>
<updated>2016-08-31T10:57:50+00:00</updated>
<author>
<name>Ji-Wei</name>
<email>ji.wei3@zte.com.cn</email>
</author>
<published>2016-08-31T10:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=e26f09e0d14d7a1a763596dd8a6029237e5ce530'/>
<id>e26f09e0d14d7a1a763596dd8a6029237e5ce530</id>
<content type='text'>
Some classes defines __eq__() built-in function, but does
not define __ne__() built-in function, so self.assertEqual works
but self.assertNotEqual does not work at all in this test case in
python2. This patch fixes it.

Change-Id: I3e4f213081268bad44583a63a84795d39094117f
Closes-Bug: #1586268
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some classes defines __eq__() built-in function, but does
not define __ne__() built-in function, so self.assertEqual works
but self.assertNotEqual does not work at all in this test case in
python2. This patch fixes it.

Change-Id: I3e4f213081268bad44583a63a84795d39094117f
Closes-Bug: #1586268
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Ensure the fetching jobs does not fetch anything when in bad state"</title>
<updated>2016-07-25T16:37:39+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-07-25T16:37:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=fac03addd2bd53a84e8be4e02173c1496de0affe'/>
<id>fac03addd2bd53a84e8be4e02173c1496de0affe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix some misspellings in the function name and descriptions</title>
<updated>2016-06-30T15:44:49+00:00</updated>
<author>
<name>Pablo Iranzo Gómez</name>
<email>Pablo.Iranzo@gmail.com</email>
</author>
<published>2016-06-30T14:28:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=74221942ef29f75a6bacf461e95df88c792136f5'/>
<id>74221942ef29f75a6bacf461e95df88c792136f5</id>
<content type='text'>
Change-Id: I7e3451feb94b1f25b00c5e7b197bb6b527548306
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I7e3451feb94b1f25b00c5e7b197bb6b527548306
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure the fetching jobs does not fetch anything when in bad state</title>
<updated>2016-06-01T00:58:34+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2016-03-15T17:50:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=35a9305f172ed8970caf1ff5cec261df7d3fe9ce'/>
<id>35a9305f172ed8970caf1ff5cec261df7d3fe9ce</id>
<content type='text'>
When the underlying connection is in LOST or SUSPENDED mode do not
allow jobs to be iterated over (and clear the local cache when the
connection has been LOST).

Related-Bug: #1557107

Change-Id: Ic0a2ab2519ff8a7386d80d9092a0e24579883681
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the underlying connection is in LOST or SUSPENDED mode do not
allow jobs to be iterated over (and clear the local cache when the
connection has been LOST).

Related-Bug: #1557107

Change-Id: Ic0a2ab2519ff8a7386d80d9092a0e24579883681
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Add rundimentary and/or non-optimized job priorities"</title>
<updated>2016-04-28T20:58:49+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-04-28T20:58:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=2fca79d319daccc2897d502479ba395dbb9f97c3'/>
<id>2fca79d319daccc2897d502479ba395dbb9f97c3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
