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

Unified Diff: common/api/dm/service/v1/graph_data_abnormal_finish.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: fix imports and make dummy.go a real file Created 4 years, 6 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
« no previous file with comments | « common/api/dm/service/v1/graph_data.pb.go ('k') | common/api/dm/service/v1/graph_data_purge_timestamps.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/api/dm/service/v1/graph_data_abnormal_finish.go
diff --git a/common/api/dm/service/v1/graph_data_abnormal_finish.go b/common/api/dm/service/v1/graph_data_abnormal_finish.go
new file mode 100644
index 0000000000000000000000000000000000000000..2190af98086dc83c6da408d413fac83e800c916c
--- /dev/null
+++ b/common/api/dm/service/v1/graph_data_abnormal_finish.go
@@ -0,0 +1,16 @@
+// Copyright 2016 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package dm
+
+// CouldRetry returns true iff this status code is retryable.
+func (s AbnormalFinish_Status) CouldRetry() bool {
+ switch s {
+ case AbnormalFinish_FAILED, AbnormalFinish_CRASHED,
+ AbnormalFinish_EXPIRED, AbnormalFinish_TIMED_OUT:
+
+ return true
+ }
+ return false
+}
« no previous file with comments | « common/api/dm/service/v1/graph_data.pb.go ('k') | common/api/dm/service/v1/graph_data_purge_timestamps.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698