TasksΒΆ
A Speedwagon job contains one or more tasks that do some kind of work.
To perform work as part of a job, the Workflow
needs to take input provided by the user and turn it
into tasks. This is done in two steps. First with
discover_task_metadata()
method and then with the
create_new_task()
method.
The discover_task_metadata()
method is for generating a list
of serializable metadata that could be used to generate a task.
The create_new_task()
method
uses the information generate by discover_task_metadata()
to generate tasks.
The initial_task()
method
is simular to create_new_task()
but the execution of these tasks
after the job is submitted but before get_additional_info()
and
discover_task_metadata()
methods. It is useful for gathering information about potential tasks will be
run. For example: This could run a task that is traversing a path with many
items.