mirror of
https://github.com/whyour/qinglong.git
synced 2026-10-16 22:35:32 +08:00
Synchronize scheduler concurrency across API and gRPC processes and restore persisted limits during recovery. Serialize subscription mutations and preserve shared storage while cleaning Shell and CLI namespaces, historical references, and filesystem-specific naming candidates. Handle CLI text responses correctly and include script history in backups. Add regression coverage for concurrency, cleanup ownership, long URLs, Unicode paths, and history exports.
34 lines
721 B
Protocol Buffer
34 lines
721 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package com.ql.cron;
|
|
|
|
service Cron {
|
|
rpc addCron(AddCronRequest) returns (AddCronResponse);
|
|
rpc delCron(DeleteCronRequest) returns (DeleteCronResponse);
|
|
rpc setConcurrency(SetConcurrencyRequest) returns (AddCronResponse);
|
|
}
|
|
|
|
message ISchedule { string schedule = 1; }
|
|
|
|
message ICron {
|
|
string id = 1;
|
|
string schedule = 2;
|
|
string command = 3;
|
|
repeated ISchedule extra_schedules = 4;
|
|
string name = 5;
|
|
}
|
|
|
|
message AddCronRequest {
|
|
repeated ICron crons = 1;
|
|
bool replace = 2;
|
|
}
|
|
|
|
message AddCronResponse {}
|
|
|
|
message DeleteCronRequest { repeated string ids = 1; }
|
|
|
|
message DeleteCronResponse {}
|
|
|
|
// Zero restores the default limit.
|
|
message SetConcurrencyRequest { int32 concurrency = 1; }
|