summaryrefslogtreecommitdiff
path: root/taskflow/examples/persistence_example.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove **most** usage of taskflow.utils in examplesJoshua Harlow2015-07-171-2/+1
| | | | | | | | | | It appears folks are using the taskflow.utils code in there own code-bases (likely taking it from the examples) which we do not want to encourage, so remove the usage of **most** of taskflow.utils code from the examples so that people are less likely to copy/paste/reference it. Change-Id: I0ce3c520de347e3e746e7912aa1366a515458424
* Rename logbook module -> models moduleJoshua Harlow2015-07-081-2/+2
| | | | | | | | | | | Since this module contains more than the logbook class and really is a our generic models that are used to hold the runtime structure it is more appropriate to place it under a models module and deprecate the usage of the old module by placing a warning there (so that when it is imported that warning is triggered). Change-Id: I79def5ee08f560d38f2c9dcefd0b33becc2a4d36
* Fix a couple of spelling and grammar errorsRick van de Loo2015-03-291-5/+5
| | | | | | | Some things that popped out while reading the comments/documentation. Change-Id: I0ccecae3381447ede44bb855d91f997349be1562
* Deprecate `engine_conf` and prefer `engine` insteadJoshua Harlow2014-10-181-9/+4
| | | | | | | | | | | | | | | | | | | | | | To avoid having one set of options coming from `engine_conf` and another set of options coming from `kwargs` and another set coming from `engine_conf` if it is a URI just start to shift toward `engine_conf` being deprecated and `engine` being a string type only (or a URI with additional query parameters) and having any additional **kwargs that are provided just get merged into the final engine options. This adds a new helper function that handles all these various options and adds in a keyword argument `engine` that will be shifted to in a future version (in that future version we can also then remove the `engine_conf` and just stick to a smaller set of option mechanisms). It also adjusts all examples to use this new and more easier to understand format and adjusts tests, conductor interface to use this new more easily understandable style of getting an engine. Change-Id: Ic7617057338e0c63775cf38a24643cff6e454950
* Cleanup some of the example code & docsJoshua Harlow2014-07-111-12/+6
| | | | | | | | | | | | | 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-2/+2
| | | | | | | | * Added missing period for doc strings * Correct syntax errors * Remove H402 from flake8 ignore list Change-Id: Ia8592bf99378e3658d6cca2ceb148bf9eb0b5de8
* Add envs for different sqlalchemy versionsJoshua Harlow2014-01-091-40/+38
| | | | | | | | | | | | | Adjust tests to skip the sqlalchemy test if sqlalchemy is not installed. Adjust examples to fallback to a directory based backend if the sqlalchemy does not load or is not available. Include a updated tox.ini (generated from the toxgen.py script) that includes the new venv variations. Change-Id: I7686f09901a9b65d7c81b4e037b5bffc24aa7ef7
* Misc minor fixes to taskflow/examplesChangbin Liu2014-01-031-8/+7
| | | | Change-Id: Iecf7693239d93e5a43cf5470bcfcdec605410ce4
* Increase persistence example commentsJoshua Harlow2013-10-161-6/+24
| | | | Change-Id: Ibd137ea7017bdf248e6ea524cfa7e5b39f4ad37f
* Add a persistence util logbook formatting functionJoshua Harlow2013-10-121-13/+2
| | | | | | | | It is quite useful to be able to dump what is in a logbook in a human readable format so this adds a helper utility function to do just this. Change-Id: I84d8a9caf531de018fb361211624fc5b8c030260
* Add a example which uses a sqlite persistence layerJoshua Harlow2013-10-071-0/+122
Add an example that will use a sqlite layer for persisting flow and task information, and will use the layer for future resumption. Show how to output what a logbook contains as well. Change-Id: If5f936fe100cb43ed857b99e3fae0c6e6baba5ed