Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: logdog/api/endpoints/coordinator/services/v1/tasks.pb.go

Issue 2989333002: [logdog] Replace Tumble with push queues. (Closed)
Patch Set: comments Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: logdog/api/endpoints/coordinator/services/v1/tasks.pb.go
diff --git a/logdog/api/endpoints/coordinator/services/v1/tasks.pb.go b/logdog/api/endpoints/coordinator/services/v1/tasks.pb.go
index 08fd6069e4fc94a4cd5766f7a0f545b9cd2a9b47..43179955723a2eca0071bf8fdd51caa539d49be0 100644
--- a/logdog/api/endpoints/coordinator/services/v1/tasks.pb.go
+++ b/logdog/api/endpoints/coordinator/services/v1/tasks.pb.go
@@ -14,6 +14,82 @@ var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
+// The type of archival task.
+type ArchiveDispatchTask_Tag int32
+
+const (
+ ArchiveDispatchTask_TERMINATED ArchiveDispatchTask_Tag = 0
+ ArchiveDispatchTask_EXPIRED ArchiveDispatchTask_Tag = 1
+)
+
+var ArchiveDispatchTask_Tag_name = map[int32]string{
+ 0: "TERMINATED",
+ 1: "EXPIRED",
+}
+var ArchiveDispatchTask_Tag_value = map[string]int32{
+ "TERMINATED": 0,
+ "EXPIRED": 1,
+}
+
+func (x ArchiveDispatchTask_Tag) String() string {
+ return proto.EnumName(ArchiveDispatchTask_Tag_name, int32(x))
+}
+func (ArchiveDispatchTask_Tag) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
+
+// ArchiveDispatchTask is an internal task used by the Coordinator to schedule
+// an archival dispatch.
+type ArchiveDispatchTask struct {
+ // The hash ID for the log stream to archive.
+ Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
+ Tag ArchiveDispatchTask_Tag `protobuf:"varint,2,opt,name=tag,enum=logdog.ArchiveDispatchTask_Tag" json:"tag,omitempty"`
+ // Don't waste time archiving the log stream until it is at least this old.
+ //
+ // This is in place to prevent overly-aggressive archivals from wasting time
+ // trying, then failing, becuase the log stream data is still being collected
+ // into intermediate storage.
+ SettleDelay *google_protobuf.Duration `protobuf:"bytes,3,opt,name=settle_delay,json=settleDelay" json:"settle_delay,omitempty"`
+ // The amount of time after the task was created that log stream completeness
+ // will be used as a success criteria. If the task's age is older than this
+ // value, completeness will not be enforced.
+ //
+ // The task's age can be calculated by subtracting its lease expiration time
+ // (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp).
+ CompletePeriod *google_protobuf.Duration `protobuf:"bytes,4,opt,name=complete_period,json=completePeriod" json:"complete_period,omitempty"`
+}
+
+func (m *ArchiveDispatchTask) Reset() { *m = ArchiveDispatchTask{} }
+func (m *ArchiveDispatchTask) String() string { return proto.CompactTextString(m) }
+func (*ArchiveDispatchTask) ProtoMessage() {}
+func (*ArchiveDispatchTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
+
+func (m *ArchiveDispatchTask) GetId() string {
+ if m != nil {
+ return m.Id
+ }
+ return ""
+}
+
+func (m *ArchiveDispatchTask) GetTag() ArchiveDispatchTask_Tag {
+ if m != nil {
+ return m.Tag
+ }
+ return ArchiveDispatchTask_TERMINATED
+}
+
+func (m *ArchiveDispatchTask) GetSettleDelay() *google_protobuf.Duration {
+ if m != nil {
+ return m.SettleDelay
+ }
+ return nil
+}
+
+func (m *ArchiveDispatchTask) GetCompletePeriod() *google_protobuf.Duration {
+ if m != nil {
+ return m.CompletePeriod
+ }
+ return nil
+}
+
// ArchiveTask is a task queue task description for the archival of a single
// log stream.
type ArchiveTask struct {
@@ -53,7 +129,7 @@ type ArchiveTask struct {
func (m *ArchiveTask) Reset() { *m = ArchiveTask{} }
func (m *ArchiveTask) String() string { return proto.CompactTextString(m) }
func (*ArchiveTask) ProtoMessage() {}
-func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
+func (*ArchiveTask) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
func (m *ArchiveTask) GetProject() string {
if m != nil {
@@ -98,7 +174,9 @@ func (m *ArchiveTask) GetDispatchedAt() *google_protobuf2.Timestamp {
}
func init() {
+ proto.RegisterType((*ArchiveDispatchTask)(nil), "logdog.ArchiveDispatchTask")
proto.RegisterType((*ArchiveTask)(nil), "logdog.ArchiveTask")
+ proto.RegisterEnum("logdog.ArchiveDispatchTask_Tag", ArchiveDispatchTask_Tag_name, ArchiveDispatchTask_Tag_value)
}
func init() {
@@ -106,24 +184,29 @@ func init() {
}
var fileDescriptor2 = []byte{
- // 295 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x41, 0x4b, 0x33, 0x31,
- 0x10, 0x86, 0xd9, 0xed, 0xf7, 0x55, 0x4c, 0x6b, 0x95, 0x9c, 0x62, 0x0f, 0x5a, 0x3c, 0xf5, 0xe2,
- 0x06, 0xf5, 0x2a, 0x48, 0xa5, 0x3f, 0xa0, 0x2c, 0xbd, 0x97, 0x34, 0x19, 0xb7, 0x63, 0x77, 0x77,
- 0x42, 0x32, 0x5b, 0xe8, 0x7f, 0xf0, 0x47, 0x4b, 0x77, 0x5d, 0x04, 0x3d, 0x78, 0x09, 0xc9, 0xe4,
- 0x79, 0x5e, 0x5e, 0x46, 0xac, 0x0a, 0xe4, 0x5d, 0xb3, 0xcd, 0x2c, 0x55, 0xba, 0x6c, 0x2c, 0xb6,
- 0xc7, 0x7d, 0x41, 0xba, 0xa4, 0xc2, 0x51, 0xa1, 0x8d, 0x47, 0x0d, 0xb5, 0xf3, 0x84, 0x35, 0x47,
- 0x6d, 0x89, 0x82, 0xc3, 0xda, 0x30, 0x05, 0x1d, 0x21, 0x1c, 0xd0, 0x42, 0xd4, 0x87, 0x07, 0xcd,
- 0x26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e, 0x54,
+ 0x28, 0xc7, 0x7f, 0x50, 0xcc, 0x7f, 0x1b, 0xb6, 0x78, 0x98, 0x76, 0x8a, 0xb7, 0x3f, 0x03, 0x00,
+ 0x00, 0xff, 0xff, 0x49, 0xdd, 0x06, 0x6c, 0xb3, 0x02, 0x00, 0x00,
}
« no previous file with comments | « logdog/api/endpoints/coordinator/services/v1/tasks.proto ('k') | logdog/appengine/cmd/coordinator/backend/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698