1// Copyright 2024 The ChromiumOS Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5syntax = "proto3"; 6 7package chromiumos.test.scheduling; 8 9option go_package = "./proto"; 10 11enum TaskState { 12 REQUESTED = 0; 13 PENDING = 1; 14 LAUNCHED = 2; 15 COMPLETED = 3; 16 EXPIRED = 4; 17 CANCELED = 5; 18 FAILED_TO_LAUNCH = 6; 19} 20 21message CreateTaskStatesResponse { 22 map<int64, int64> ids = 1; 23} 24 25message ReadTaskStatesResponse { 26 repeated TaskWithState tasks = 1; 27} 28 29message TaskWithState { 30 int64 task_state_id = 1; 31 TaskState state = 2; 32 int64 bbid = 3; 33 string lease_id = 4; 34 string device_name = 5; 35 // Timestamp in microseconds. 36 int64 end_time = 6; 37}