pub struct TaskRequest {
pub dag_file: DagFile,
pub dag_id: String,
pub task: Task,
pub inputs: BTreeMap<String, Value>,
pub outcomes: BTreeMap<String, Value>,
pub run: RunInfo,
pub sys_path: Vec<String>,
pub secrets: Vec<SecretValue>,
pub connection_test: Option<String>,
pub cleanup: Option<Vec<CleanupHandle>>,
pub trigger: Option<TriggerStart>,
}Expand description
One task attempt for the runner to run.
Fields§
§dag_file: DagFileThe DAG file to import.
dag_id: StringThe DAG’s ID (the file may define several DAGs).
task: TaskThe task as stored in DAG JSON (its arguments and settings).
inputs: BTreeMap<String, Value>The upstream outputs the task uses, by task ID, as stored JSON.
outcomes: BTreeMap<String, Value>The upstream tasks’ outcomes, by task ID: a name, or null for a skipped one (its
references stand for None).
run: RunInfoThe run information.
sys_path: Vec<String>Directories put first on sys.path (every DAG root).
secrets: Vec<SecretValue>The secrets fetched for the attempt (those its arguments name and those it declares,
prefixes aside): filled into its arguments and read by task_ctx.secret(...).
connection_test: Option<String>Set for schedr connections test (decision 174): no task is run; the file is
imported, and this connection opened and checked (decision 198).
cleanup: Option<Vec<CleanupHandle>>Set for a cleanup: the task’s cleanup function is called with the task’s inputs and these handles, in registration order, instead of the task.
trigger: Option<TriggerStart>Set for a trigger: task is its function, which yields events until it is stopped.
Trait Implementations§
Source§impl Clone for TaskRequest
impl Clone for TaskRequest
Source§fn clone(&self) -> TaskRequest
fn clone(&self) -> TaskRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskRequest
impl Debug for TaskRequest
Source§impl<'de> Deserialize<'de> for TaskRequest
impl<'de> Deserialize<'de> for TaskRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TaskRequest
Source§impl JsonSchema for TaskRequest
impl JsonSchema for TaskRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more