-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from bitfinity-network/revert-202-EPROD-653-d…
…efine-how-to-handle-panics-in-the-task-scheduler Revert "EPROD 653 define how to handle panics in the task scheduler"
- Loading branch information
Showing
11 changed files
with
627 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use candid::CandidType; | ||
use serde::{Deserialize, Serialize}; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error)] | ||
#[derive(CandidType, Debug, Error, PartialEq, Eq, Serialize, Deserialize)] | ||
pub enum SchedulerError { | ||
#[error("TaskExecutionFailed: {0}")] | ||
TaskExecutionFailed(String), | ||
#[error("storage error: {0}")] | ||
StorageError(#[from] ic_stable_structures::Error), | ||
} | ||
|
||
/// Result type for the scheduler | ||
pub type Result<T> = std::result::Result<T, SchedulerError>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.