Files
hatchet/api-contracts/v1/dispatcher.proto
abelanger5 00c4bbff09 feat(v1): new gRPC API endpoints (#1367)
* 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
2025-03-23 18:58:20 -07:00

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
}