mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-02 10:43:08 +00:00
## What changed? Adds `buf format` as a Makefile target; and integrates it into `make fmt`. All `.proto` changes are from running `make fmt`. ## Why? Consistent protobuf file style. ## How did you test it? - [x] built - [ ] run locally and tested manually - [ ] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
52 lines
2.5 KiB
Protocol Buffer
52 lines
2.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package temporal.server.chasm.lib.scheduler.proto.v1;
|
|
|
|
import "chasm/lib/scheduler/proto/v1/request_response.proto";
|
|
import "temporal/server/api/common/v1/api_category.proto";
|
|
import "temporal/server/api/routing/v1/extension.proto";
|
|
|
|
option go_package = "go.temporal.io/server/chasm/lib/scheduler/gen/schedulerpb;schedulerpb";
|
|
|
|
service SchedulerService {
|
|
rpc CreateSchedule(CreateScheduleRequest) returns (CreateScheduleResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
|
|
rpc UpdateSchedule(UpdateScheduleRequest) returns (UpdateScheduleResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
|
|
rpc PatchSchedule(PatchScheduleRequest) returns (PatchScheduleResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
|
|
rpc DeleteSchedule(DeleteScheduleRequest) returns (DeleteScheduleResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
|
|
rpc DescribeSchedule(DescribeScheduleRequest) returns (DescribeScheduleResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
|
|
rpc ListScheduleMatchingTimes(ListScheduleMatchingTimesRequest) returns (ListScheduleMatchingTimesResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "frontend_request.schedule_id";
|
|
option (temporal.server.api.common.v1.api_category).category = API_CATEGORY_STANDARD;
|
|
}
|
|
rpc CreateFromMigrationState(CreateFromMigrationStateRequest) returns (CreateFromMigrationStateResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "state.scheduler_state.schedule_id";
|
|
}
|
|
|
|
rpc CreateSentinel(CreateSentinelRequest) returns (CreateSentinelResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "schedule_id";
|
|
}
|
|
rpc MigrateToWorkflow(MigrateToWorkflowRequest) returns (MigrateToWorkflowResponse) {
|
|
option (temporal.server.api.routing.v1.routing).business_id = "schedule_id";
|
|
}
|
|
}
|