summaryrefslogtreecommitdiff
path: root/taskflow/examples/simple_linear.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple of spelling and grammar errorsRick van de Loo2015-03-291-2/+2
| | | | | | | Some things that popped out while reading the comments/documentation. Change-Id: I0ccecae3381447ede44bb855d91f997349be1562
* Cleanup some of the example code & docsJoshua Harlow2014-07-111-6/+7
| | | | | | | | | | | | | This commit makes a set of small adjustments to examples. - Rework some of the comments to be more clear. - Add links to the original source tree file. - Rename some of the examples to make it clear the concept the example is intented to show. - Move some common example functionality to the example utility file. Change-Id: I858e0dbf72fe8cb40a05bfdbb0857720ffb71c7f
* Remove extraneous vim configuration commentsyangxurong2014-02-141-2/+0
| | | | | | | | | Remove line containing comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4 Change-Id: I7581cc88b8de433d5609ed06c6570b0b45c13573 Closes-Bug:#1229324
* Doc strings and comments clean-upskudriashev2014-01-261-1/+1
| | | | | | | | * Added missing period for doc strings * Correct syntax errors * Remove H402 from flake8 ignore list Change-Id: Ia8592bf99378e3658d6cca2ceb148bf9eb0b5de8
* Fix misspellingsStanislav Kudriashev2013-12-101-1/+1
| | | | Change-Id: I6f332f01d197c6ba1b02de1145714718f8aea6fb
* Add docs/intro to simple_linear exampleJoshua Harlow2013-10-161-8/+16
| | | | Change-Id: I6911337bf492d5cfc7e48a006dbf076826a18a62
* Bump requirements to the latestJoshua Harlow2013-10-051-0/+18
| | | | | | | | | | | Match the requirements for taskflow with the openstack requirements (note the upstream requirements are missing 'futures' and 'networkx') and update the new hacking violations that were detected due to the hacking requirement version bump. Change-Id: I8d1326cf2a8b1ea062f5e9aacd0c4f8261c6531a
* Simpler API to load flows into enginesIvan A. Melnikov2013-10-031-12/+8
| | | | | | | | | | | | | | | | | | | | | Previously to run a flow client code had to put together the flow, an engine, logbook, flowdetail, and storage backend. This commit adds two helper functions, run() and load(), so that simplest usecase now looks like taskflow.engines.run(flow) Client code may also provide configuration for storage and engine if needed, but if not needed it just works with defaults. Engines are loaded via stevedore, as drivers in 'taskflow.engines' backend. Now three entry points are defined in that namespace: - 'default', for SingleThreadedActionEngine, used by default; - 'serial', as another synonym for SingleThreadedActionEngine; - 'parallel', for MultiThreadedActionEngine. Closes-bug: #1224726 Change-Id: I7f4cb5c8ff7f5f12831ddd0952c202d2fd8cd6ef
* Engine, task, linear_flow unificationJoshua Harlow2013-09-051-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to move away from the existing flows having their own implementation of running, start moving the existing flows to be patterns that only structure tasks (and impose constraints about how the group of tasks can run) in useful ways. Let the concept of running those patterns be handled by an engine instead of being handled by the flow itself. This will allow for varying engines to be able to run flows in whichever way the engine chooses (as long as the constraints set up by the flow are observed). Currently threaded flow and graph flow are broken by this commit, since they have not been converted to being a structure of tasks + constraints. The existing engine has not yet been modified to run those structures either, work is underway to remediate this. Part of: blueprint patterns-and-engines Followup bugs that must be addressed: Bug: 1221448 Bug: 1221505 Change-Id: I3a8b96179f336d1defe269728ebae0caa3d832d7
* Converted some examples to use patterns/enginesAnastasia Karpinska2013-09-041-16/+23
| | | | Change-Id: If7154019f1cb5e723069ff35f6301fce048323b5
* Check examples when running testsIvan A. Melnikov2013-08-271-0/+3
| | | | | | | | | | | Add testcase that executes all examples from taskflow/examples directory. For examples with somewhat deterministic output the output is also checked. This commit also fixes couple of examples broken by recent decorators refactoring. Change-Id: I3e65eabde43e1dd26b442d8f7dd3f062bf80703d
* Move examples under the source tree.Joshua Harlow2013-08-011-0/+32
The examples will likely be easier to find if they are colocated next to the rest of the source tree. They can also be turned into test cases in the future this way also. Change-Id: Iedcf5c51778459e5216b8072e71e271e7c7ee0bf