| 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..ccb7f5bfd9892112e95dbe6227c3ffe40683017f
|
| --- /dev/null
|
| +++ b/common/api/dm/service/v1/graph_data_abnormal_finish.go
|
| @@ -0,0 +1,16 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license 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
|
| +}
|
|
|