diff options
| author | Joshua Harlow <harlowja@yahoo-inc.com> | 2016-01-04 17:17:56 -0800 |
|---|---|---|
| committer | Joshua Harlow <harlowja@gmail.com> | 2016-01-09 22:43:25 -0800 |
| commit | f774ec826105cb1965302a485c05eb28facb1990 (patch) | |
| tree | b3b1abd895d537cdde71b8288e9623058fe9348e /taskflow/tests/unit | |
| parent | c6fd876c3ea7aaf8e6a20c8784155838d9cd7c8e (diff) | |
| download | taskflow-f774ec826105cb1965302a485c05eb28facb1990.tar.gz | |
Add rundimentary and/or non-optimized job priorities
Allow for providing job priority on job posting and order
iteration by priority (this does not store in any special way
different priorities under different keys/paths, but it could be
done that way in the future).
This is backwards compat in that all old jobs posted without a
priority assume a normal/default priority.
Change-Id: Ie670023d624f4442a16a1278a3aee0d88b102842
Diffstat (limited to 'taskflow/tests/unit')
| -rw-r--r-- | taskflow/tests/unit/jobs/test_zk_job.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/taskflow/tests/unit/jobs/test_zk_job.py b/taskflow/tests/unit/jobs/test_zk_job.py index 1e0a976..527f253 100644 --- a/taskflow/tests/unit/jobs/test_zk_job.py +++ b/taskflow/tests/unit/jobs/test_zk_job.py @@ -260,6 +260,7 @@ class ZakeJobboardTest(test.TestCase, ZookeeperBoardTestMixin): 'name': book.name, 'uuid': book.uuid, }, + 'priority': 'NORMAL', 'details': {}, }, jsonutils.loads(misc.binary_decode(paths[path_key]['data']))) |
