Skip to content

Commit

Permalink
Add FatalErrorType and WorkflowFatalError proto definitions to the wo…
Browse files Browse the repository at this point in the history
…rkflow-core (#3008)

As titled, this PR adds the proto definition of `FatalErrorType` and
`WorkflowFatalError` to `edu.uci.ics.amber` package.

These two definitions will be used by `workflow-compiling-service`.
  • Loading branch information
bobbai00 authored Nov 7, 2024
1 parent 87911ac commit d4c3f00
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

package edu.uci.ics.amber;

import "google/protobuf/timestamp.proto";
import "scalapb/scalapb.proto";

option (scalapb.options) = {
scope: FILE,
preserve_unknown_fields: false
no_default_values_in_constructor: false
};

enum FatalErrorType{
COMPILATION_ERROR = 0;
EXECUTION_FAILURE = 1;
}

message WorkflowFatalError {
FatalErrorType type = 1;
google.protobuf.Timestamp timestamp = 2 [(scalapb.field).no_box = true];
string message = 3;
string details = 4;
string operatorId = 5;
string workerId = 6;
}

0 comments on commit d4c3f00

Please sign in to comment.