Closed lazywhite closed 6 years ago
Absolutely, the following code starts a workflow 'simple':
from lightflow.config import Config
from lightflow.workflows import start_workflow
config = Config()
config.load_from_file()
job_id = start_workflow(name='simple', config=config)
print('Started workflow with ID', job_id)
You will need to create a Config object either manually or loading from a config file (shown above) and then call the start_workflow
function. Does this help?