go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cv/internal/prjmanager/prjpb/tasks.proto (about) 1 // Copyright 2020 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 syntax = "proto3"; 16 17 package cv.internal.prjmanager.prjpb; 18 19 option go_package = "go.chromium.org/luci/cv/internal/prjmanager/prjpb;prjpb"; 20 21 import "google/protobuf/timestamp.proto"; 22 23 import "go.chromium.org/luci/cv/internal/prjmanager/prjpb/storage.proto"; 24 25 26 // ManageProjectTask sends a signal to ProjectManager to process events. 27 // 28 // Always used with de-duplication and thus can't be created from a transaction. 29 // 30 // Queue: "manage-project". 31 message ManageProjectTask { 32 string luci_project = 1; 33 google.protobuf.Timestamp eta = 2; 34 } 35 36 // KickManageProjectTask starts a task to actually enqueue ManageProjectTask. 37 // 38 // It exists in order to send a deduplicatable ManageProjectTask from a 39 // transaction. 40 // 41 // Queue: "kick-manage-project". 42 message KickManageProjectTask { 43 string luci_project = 1; 44 google.protobuf.Timestamp eta = 2; 45 } 46 47 // PurgeCLTask starts a task to purge a CL. 48 // 49 // Queue: "purge-project-cl". 50 message PurgeCLTask { 51 // Next tag: 8 52 reserved 3; // trigger -> purge_reason.triggers 53 reserved 5; // reason -> purge_reasons 54 55 56 string luci_project = 1; 57 PurgingCL purging_cl = 2; 58 59 repeated PurgeReason purge_reasons = 7; 60 61 // Applicable config groups of this CL within the given LUCI Project. 62 repeated string config_groups = 6; 63 } 64 65 // TriggeringDepsTask starts a task to trigger the deps of a CL. 66 // 67 // Queue: "trigger-project-cl-deps" 68 message TriggeringCLDepsTask { 69 string luci_project = 1; 70 TriggeringCLDeps triggering_cl_deps = 2; 71 }