Tasks#
# create a runtime context
runtime_ctx = RuntimeContext(JobId.new(), data_root)
runtime_ctx.initialize(socket.gethostname(), cleanup_root=True)
# create a logical plan
plan = create_logical_plan()
# create an execution plan
planner = Planner(runtime_ctx)
exec_plan = planner.create_exec_plan(plan)
You can then execute the tasks in a scheduler, see Execution.
RuntimeContext#
|
The configuration and state for a running job. |
|
A unique identifier for a job. |
A unique identifier for a task. |
|
|
A unique identifier for a task at runtime. |
|
Information about a partition of a dataset. |
|
Performance statistics for a task. |
ExecutionPlan#
|
A directed acyclic graph (DAG) of tasks. |
Tasks#
|
The base class for all tasks. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|