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
47 lines
1.5 KiB
INI
47 lines
1.5 KiB
INI
[metadata]
|
|
name = taskflow
|
|
version = 0.0.1
|
|
summary = Taskflow structured state management library.
|
|
description-file =
|
|
README.md
|
|
author = Taskflow Developers
|
|
author-email = taskflow-dev@lists.launchpad.net
|
|
home-page = https://launchpad.net/taskflow
|
|
classifier =
|
|
Development Status :: 3 - Alpha
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: Developers
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.6
|
|
Programming Language :: Python :: 2.7
|
|
|
|
[global]
|
|
setup-hooks =
|
|
pbr.hooks.setup_hook
|
|
|
|
[files]
|
|
packages =
|
|
taskflow
|
|
|
|
[entry_points]
|
|
taskflow.persistence =
|
|
dir = taskflow.persistence.backends.impl_dir:DirBackend
|
|
file = taskflow.persistence.backends.impl_dir:DirBackend
|
|
memory = taskflow.persistence.backends.impl_memory:MemoryBackend
|
|
mysql = taskflow.persistence.backends.impl_sqlalchemy:SQLAlchemyBackend
|
|
postgresql = taskflow.persistence.backends.impl_sqlalchemy:SQLAlchemyBackend
|
|
sqlite = taskflow.persistence.backends.impl_sqlalchemy:SQLAlchemyBackend
|
|
|
|
taskflow.engines =
|
|
default = taskflow.engines.action_engine.engine:SingleThreadedActionEngine
|
|
serial = taskflow.engines.action_engine.engine:SingleThreadedActionEngine
|
|
parallel = taskflow.engines.action_engine.engine:MultiThreadedActionEngine
|
|
|
|
[nosetests]
|
|
cover-erase = true
|
|
verbosity = 2
|