Skip to content

Commit

Permalink
Rename TerminationReason::ErrorWaiting => InternalError (#802)
Browse files Browse the repository at this point in the history
Renaming error status introduced in
#799 so that it's more user
friendly.
  • Loading branch information
michaelsilver authored Aug 13, 2024
1 parent 8852d3a commit 03df75d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plane/src/drone/backend_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl BackendManager {
}
Err(BackendError::Other(msg)) => {
tracing::error!("Failed to wait for backend: {}", msg);
state.to_hard_terminating(TerminationReason::ErrorWaiting)
state.to_hard_terminating(TerminationReason::InternalError)
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions plane/src/types/backend_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ pub enum TerminationReason {
KeyExpired,
Lost,
StartupTimeout,
ErrorWaiting,
InternalError,
}

impl valuable::Valuable for TerminationReason {
Expand All @@ -247,7 +247,7 @@ impl valuable::Valuable for TerminationReason {
TerminationReason::KeyExpired => valuable::Value::String("key_expired"),
TerminationReason::Lost => valuable::Value::String("lost"),
TerminationReason::StartupTimeout => valuable::Value::String("startup_timeout"),
TerminationReason::ErrorWaiting => valuable::Value::String("error_waiting"),
TerminationReason::InternalError => valuable::Value::String("internal_error"),
}
}

Expand Down

0 comments on commit 03df75d

Please sign in to comment.