Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred
curl --request POST \
--url https://mycluster.domino.tech/api/v1/events/tasks \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"event": {
"task_id": {
"resource_type": "UNSPECIFIED",
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"version": "<string>",
"org": "<string>"
},
"parent_node_execution_id": {
"node_id": "<string>",
"execution_id": {
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"org": "<string>"
}
},
"retry_attempt": 123,
"phase": "UNDEFINED",
"producer_id": "<string>",
"logs": [
{
"uri": "<string>",
"name": "<string>",
"message_format": "UNKNOWN",
"ttl": "<string>",
"ShowWhilePending": true,
"HideOnceFinished": true
}
],
"occurred_at": "2023-11-07T05:31:56Z",
"input_uri": "<string>",
"input_data": {
"literals": {}
},
"output_uri": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"error_uri": "<string>",
"kind": "UNKNOWN",
"timestamp": "2023-11-07T05:31:56Z",
"worker": "<string>"
},
"output_data": {
"literals": {}
},
"custom_info": {},
"phase_version": 123,
"reason": "<string>",
"reasons": [
{
"reason": "<string>",
"occurred_at": "2023-11-07T05:31:56Z"
}
],
"task_type": "<string>",
"metadata": {
"generated_name": "<string>",
"external_resources": [
{
"external_id": "<string>",
"index": 123,
"retry_attempt": 123,
"phase": "UNDEFINED",
"cache_status": "CACHE_DISABLED",
"logs": [
{
"uri": "<string>",
"name": "<string>",
"message_format": "UNKNOWN",
"ttl": "<string>",
"ShowWhilePending": true,
"HideOnceFinished": true
}
],
"workflow_node_metadata": {
"execution_id": {
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"org": "<string>"
}
},
"custom_info": {},
"log_context": {
"pods": [
{
"namespace": "<string>",
"pod_name": "<string>",
"containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
],
"primary_container_name": "<string>",
"init_containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
]
}
],
"primary_pod_name": "<string>"
}
}
],
"resource_pool_info": [
{
"allocation_token": "<string>",
"namespace": "<string>"
}
],
"plugin_identifier": "<string>",
"instance_class": "DEFAULT"
},
"event_version": 123,
"reported_at": "2023-11-07T05:31:56Z",
"log_context": {
"pods": [
{
"namespace": "<string>",
"pod_name": "<string>",
"containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
],
"primary_container_name": "<string>",
"init_containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
]
}
],
"primary_pod_name": "<string>"
}
}
}
'{}AdminService
Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred
Create a task execution event recording a phase transition.
POST
/
api
/
v1
/
events
/
tasks
Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred
curl --request POST \
--url https://mycluster.domino.tech/api/v1/events/tasks \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"event": {
"task_id": {
"resource_type": "UNSPECIFIED",
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"version": "<string>",
"org": "<string>"
},
"parent_node_execution_id": {
"node_id": "<string>",
"execution_id": {
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"org": "<string>"
}
},
"retry_attempt": 123,
"phase": "UNDEFINED",
"producer_id": "<string>",
"logs": [
{
"uri": "<string>",
"name": "<string>",
"message_format": "UNKNOWN",
"ttl": "<string>",
"ShowWhilePending": true,
"HideOnceFinished": true
}
],
"occurred_at": "2023-11-07T05:31:56Z",
"input_uri": "<string>",
"input_data": {
"literals": {}
},
"output_uri": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"error_uri": "<string>",
"kind": "UNKNOWN",
"timestamp": "2023-11-07T05:31:56Z",
"worker": "<string>"
},
"output_data": {
"literals": {}
},
"custom_info": {},
"phase_version": 123,
"reason": "<string>",
"reasons": [
{
"reason": "<string>",
"occurred_at": "2023-11-07T05:31:56Z"
}
],
"task_type": "<string>",
"metadata": {
"generated_name": "<string>",
"external_resources": [
{
"external_id": "<string>",
"index": 123,
"retry_attempt": 123,
"phase": "UNDEFINED",
"cache_status": "CACHE_DISABLED",
"logs": [
{
"uri": "<string>",
"name": "<string>",
"message_format": "UNKNOWN",
"ttl": "<string>",
"ShowWhilePending": true,
"HideOnceFinished": true
}
],
"workflow_node_metadata": {
"execution_id": {
"project": "<string>",
"domain": "<string>",
"name": "<string>",
"org": "<string>"
}
},
"custom_info": {},
"log_context": {
"pods": [
{
"namespace": "<string>",
"pod_name": "<string>",
"containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
],
"primary_container_name": "<string>",
"init_containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
]
}
],
"primary_pod_name": "<string>"
}
}
],
"resource_pool_info": [
{
"allocation_token": "<string>",
"namespace": "<string>"
}
],
"plugin_identifier": "<string>",
"instance_class": "DEFAULT"
},
"event_version": 123,
"reported_at": "2023-11-07T05:31:56Z",
"log_context": {
"pods": [
{
"namespace": "<string>",
"pod_name": "<string>",
"containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
],
"primary_container_name": "<string>",
"init_containers": [
{
"container_name": "<string>",
"process": {
"container_start_time": "2023-11-07T05:31:56Z",
"container_end_time": "2023-11-07T05:31:56Z"
}
}
]
}
],
"primary_pod_name": "<string>"
}
}
}
'{}Body
application/json
Request to send a notification that a task execution event has occurred.
Response
A successful response.
Purposefully empty, may be populated in the future.
Was this page helpful?
Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurredIndicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred
⌘I