Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto3"; | 5 syntax = "proto3"; |
| 6 | 6 |
| 7 package logdog; | 7 package logdog; |
| 8 | 8 |
| 9 import "google/protobuf/duration.proto"; | |
| 10 | |
| 9 // ArchiveTask is a task queue task description for the archival of a single | 11 // ArchiveTask is a task queue task description for the archival of a single |
| 10 // log stream. | 12 // log stream. |
| 11 message ArchiveTask { | 13 message ArchiveTask { |
| 12 // The path of the log stream to archive. | 14 // The path of the log stream to archive. |
| 13 string path = 1; | 15 string path = 1; |
| 14 | 16 |
| 15 // If true, require that the log stream be complete. | 17 // The amount of time after the task was created that log stream completeness |
| 16 bool complete = 2; | 18 // will be used as a success criteria. If the task's age is older than this |
| 19 // value, completeness will not be enforced. | |
| 20 // | |
| 21 // The task's age can be calculated by subtracting its lease expiration time | |
| 22 // (leaseTimestamp) from its enqueued timestamp (enqueueTimestamp). | |
|
Vadim Sh.
2016/04/07 01:21:32
dunno, I'd just use global timestamp and don't bot
dnj
2016/04/11 17:20:04
Since we have to load the stream state in the Arch
| |
| 23 google.protobuf.Duration complete_period = 2; | |
| 17 } | 24 } |
| OLD | NEW |