mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 13:46:51 +08:00

- Re-using the WorkflowExecution message, since Cron Workflow will use that information to figure out the Workflow to execute.
35 lines
844 B
Protocol Buffer
35 lines
844 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "google/protobuf/empty.proto";
|
|
import "workflow_template.proto";
|
|
import "workflow.proto";
|
|
import "metric.proto";
|
|
|
|
service CronWorkflowService {
|
|
rpc CreateCronWorkflow (CreateWorkflowRequest) returns (CronWorkflow) {
|
|
option (google.api.http) = {
|
|
post: "/apis/v1beta1/{namespace}/cron_workflow"
|
|
body: "cronWorkflow"
|
|
};
|
|
}
|
|
}
|
|
|
|
message CreateWorkflowRequest {
|
|
string namespace = 1;
|
|
CronWorkflow cronWorkflow = 2;
|
|
}
|
|
|
|
message CronWorkflow {
|
|
string schedule = 1;
|
|
string timezone = 2;
|
|
bool suspend = 3;
|
|
string concurrencyPolicy = 4;
|
|
string startingDeadlineSeconds = 5;
|
|
string successfulJobsHistoryLimit = 6;
|
|
string failedJobsHistoryLimit = 7;
|
|
|
|
WorkflowExecution workflowExecution = 8;
|
|
} |