Skip to content

Commit

Permalink
feat: add processed at field in task data (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem authored Jan 10, 2024
2 parents 2390f92 + ce1e8ab commit 3616eee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Protos/V1/tasks_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ message TaskDetailed {

google.protobuf.Timestamp created_at = 11; /** The task creation date. */
google.protobuf.Timestamp submitted_at = 12; /** The task submission date. */
google.protobuf.Timestamp received_at = 18; /** When the task is received by the agent. */
google.protobuf.Timestamp acquired_at = 19; /** When the task is acquired by the agent. */
google.protobuf.Timestamp started_at = 13; /** The task start date. */
google.protobuf.Timestamp processed_at = 24; /** The end of task processing date. */
google.protobuf.Timestamp ended_at = 14; /** The task end date. Also used when task failed. */
google.protobuf.Timestamp pod_ttl = 15; /** The pod TTL (Time To Live). */

google.protobuf.Duration creation_to_end_duration = 20; /** The task duration. Between the creation date and the end date. */
google.protobuf.Duration processing_to_end_duration = 21; /** The task calculated duration. Between the start date and the end date. */
google.protobuf.Timestamp pod_ttl = 15; /** The pod TTL (Time To Live). */
google.protobuf.Duration received_to_end_duration = 23; /** The task calculated duration. Between the received date and the end date. */

/**
* Represents the task output.
Expand All @@ -55,8 +60,6 @@ message TaskDetailed {
Output output = 16; /** The task output. */

string pod_hostname = 17; /** The hostname of the container running the task. */
google.protobuf.Timestamp received_at = 18; /** When the task is received by the agent. */
google.protobuf.Timestamp acquired_at = 19; /** When the task is acquired by the agent. */
}

/**
Expand All @@ -83,17 +86,19 @@ message TaskSummary {

google.protobuf.Timestamp created_at = 5; /** The task creation date. */
google.protobuf.Timestamp submitted_at = 12; /** The task submission date. */
google.protobuf.Timestamp received_at = 18; /** When the task is received by the agent. */
google.protobuf.Timestamp acquired_at = 19; /** When the task is acquired by the agent. */
google.protobuf.Timestamp started_at = 6; /** The task start date. */
google.protobuf.Timestamp processed_at = 23; /** The end of task processing date. */
google.protobuf.Timestamp ended_at = 7; /** The task end date. Also used when task failed. */
google.protobuf.Timestamp pod_ttl = 20; /** The pod TTL (Time To Live). */

google.protobuf.Duration creation_to_end_duration = 15; /** The task duration. Between the creation date and the end date. */
google.protobuf.Duration processing_to_end_duration = 16; /** The task calculated duration. Between the start date and the end date. */
google.protobuf.Timestamp pod_ttl = 20; /** The pod TTL (Time To Live). */
google.protobuf.Duration received_to_end_duration = 24; /** The task calculated duration. Between the received date and the end date. */

string error = 8; /** The error message. Only set if task have failed. */

string pod_hostname = 17; /** The hostname of the container running the task. */
google.protobuf.Timestamp received_at = 18; /** When the task is received by the agent. */
google.protobuf.Timestamp acquired_at = 19; /** When the task is acquired by the agent. */
}

/**
Expand Down
2 changes: 2 additions & 0 deletions Protos/V1/tasks_fields.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ enum TaskSummaryEnumField {
TASK_SUMMARY_ENUM_FIELD_ENDED_AT = 5; /** The task end date. */
TASK_SUMMARY_ENUM_FIELD_CREATION_TO_END_DURATION = 6; /** The task duration. Between the creation date and the end date. */
TASK_SUMMARY_ENUM_FIELD_PROCESSING_TO_END_DURATION = 7; /** The task calculated duration. Between the start date and the end date. */
TASK_SUMMARY_ENUM_FIELD_RECEIVED_TO_END_DURATION = 18; /** The task calculated duration. Between the received date and the end date. */
TASK_SUMMARY_ENUM_FIELD_POD_TTL = 12; /** The pod TTL (Time To Live). */
TASK_SUMMARY_ENUM_FIELD_POD_HOSTNAME = 13; /** The hostname of the container running the task. */
TASK_SUMMARY_ENUM_FIELD_RECEIVED_AT = 14; /** When the task is received by the agent. */
TASK_SUMMARY_ENUM_FIELD_ACQUIRED_AT = 15; /** When the task is acquired by the agent. */
TASK_SUMMARY_ENUM_FIELD_PROCESSED_AT = 17; /** When the task is processed by the agent. */
TASK_SUMMARY_ENUM_FIELD_ERROR = 8; /** The error message. Only set if task have failed. */
}

Expand Down

0 comments on commit 3616eee

Please sign in to comment.