Skip to main content

Resource

This is the output resource of the job.

Attributes

AttributeTypeDescription
phaseTaskExecution.PhaseThe phase of the job.
messageOptional[str] = NoneThe return message from the job.
log_linksOptional[List[TaskLog]] = NoneThe log links of the job. For example, the link to the BigQuery Console.
outputsOptional[Dict[str, Any]] = NoneThe outputs of the job. If return python native types, the agent will convert them to flyte literals.
custom_infoOptional[typing.Dict[str, Any]] = NoneThe custom info of the job. For example, the job config.

Constructor

Signature

def Resource(
phase: TaskExecution.Phase,
message: Optional[str] = None,
log_links: Optional[List[TaskLog]] = None,
outputs: Optional[Dict[str, Any]] = None,
custom_info: Optional[Dict[str, Any]] = None
) - > null

Parameters

NameTypeDescription
phaseTaskExecution.PhaseThe current phase of the job execution.
messageOptional[str] = NoneThe return message or status text from the job.
log_linksOptional[List[TaskLog]] = NoneA list of log links associated with the job execution.
outputsOptional[Dict[str, Any]] = NoneThe outputs produced by the job, which may be converted to flyte literals.
custom_infoOptional[Dict[str, Any]] = NoneAdditional custom metadata or configuration information for the job.

Signature

def Resource(
phase: TaskExecution.Phase,
message: Optional[str] = None,
log_links: Optional[List[TaskLog]] = None,
outputs: Optional[Dict[str, Any]] = None,
custom_info: Optional[Dict[str, Any]] = None
) - > null

Parameters

NameTypeDescription
phaseTaskExecution.PhaseThe current execution phase of the task, such as SUCCEEDED or FAILED
messageOptional[str] = NoneThe return message or status text provided by the job upon completion
log_linksOptional[List[TaskLog]] = NoneA list of TaskLog objects containing URLs to external logs, such as the BigQuery Console
outputsOptional[Dict[str, Any]] = NoneThe job outputs, which can be provided as Flyte literals or Python native types for automatic conversion
custom_infoOptional[Dict[str, Any]] = NoneA dictionary containing additional metadata or configuration details specific to the job