mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-18 23:30:13 -06:00
* wip: api contracts * feat: implement put workflow version endpoint * add support for match existing data, get scaffolding in place for additional triggers * create additional matches * feat: durable sleep, user event matching * update protos * fix: working poc of user events, durable sleep * add migration * fix: migration column * feat: durable event listener * fix: skip overrides * fix: input -> output
34 lines
960 B
Protocol Buffer
34 lines
960 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "github.com/hatchet-dev/hatchet/internal/services/shared/proto/v1";
|
|
|
|
package v1;
|
|
|
|
import "v1/shared/condition.proto";
|
|
|
|
service V1Dispatcher {
|
|
rpc RegisterDurableEvent(RegisterDurableEventRequest) returns (RegisterDurableEventResponse) {}
|
|
|
|
rpc ListenForDurableEvent(stream ListenForDurableEventRequest) returns (stream DurableEvent) {}
|
|
}
|
|
|
|
message RegisterDurableEventRequest {
|
|
string task_id = 1; // external uuid for the task run
|
|
string signal_key = 2; // the signal key for the event
|
|
DurableEventListenerConditions conditions = 3; // the task conditions for creating the task
|
|
}
|
|
|
|
message RegisterDurableEventResponse {
|
|
}
|
|
|
|
message ListenForDurableEventRequest {
|
|
string task_id = 1; // single listener per worker
|
|
string signal_key = 2; // the match id for the listener
|
|
}
|
|
|
|
message DurableEvent {
|
|
string task_id = 1;
|
|
string signal_key = 2;
|
|
bytes data = 3; // the data for the event
|
|
}
|