Resource
This is the output resource of the job.
Attributes
| Attribute | Type | Description |
|---|---|---|
| phase | TaskExecution.Phase | The phase of the job. |
| message | Optional[str] = None | The return message from the job. |
| log_links | Optional[List[TaskLog]] = None | The log links of the job. For example, the link to the BigQuery Console. |
| outputs | Optional[Dict[str, Any]] = None | The outputs of the job. If return python native types, the agent will convert them to flyte literals. |
| custom_info | Optional[typing.Dict[str, Any]] = None | The 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
| Name | Type | Description |
|---|---|---|
| phase | TaskExecution.Phase | The current phase of the job execution. |
| message | Optional[str] = None | The return message or status text from the job. |
| log_links | Optional[List[TaskLog]] = None | A list of log links associated with the job execution. |
| outputs | Optional[Dict[str, Any]] = None | The outputs produced by the job, which may be converted to flyte literals. |
| custom_info | Optional[Dict[str, Any]] = None | Additional 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
| Name | Type | Description |
|---|---|---|
| phase | TaskExecution.Phase | The current execution phase of the task, such as SUCCEEDED or FAILED |
| message | Optional[str] = None | The return message or status text provided by the job upon completion |
| log_links | Optional[List[TaskLog]] = None | A list of TaskLog objects containing URLs to external logs, such as the BigQuery Console |
| outputs | Optional[Dict[str, Any]] = None | The job outputs, which can be provided as Flyte literals or Python native types for automatic conversion |
| custom_info | Optional[Dict[str, Any]] = None | A dictionary containing additional metadata or configuration details specific to the job |