summaryrefslogtreecommitdiff
path: root/proto/jobs/v1beta/jobs.proto
blob: 13fd5595d10f7dcacfc72d7ed9fd21037a5bf697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
syntax = "proto3";

package jobs.v1beta;
option go_package = "./;jobsv1beta";

// single job request
message Request {
    Job job = 1;
}

// batch jobs request
message BatchRequest {
    repeated Job jobs = 1;
}

// RPC response
message Response {
    string id = 1;
}

message Job {
    string job = 1;
    string payload = 2;
    Options options = 3;
}

message Options {
    uint64 priority = 1;
    string id = 2;
    string pipeline = 3;
    uint64 delay = 4;
    uint64 attempts = 5;
    uint64 retry_delay = 6;
    uint64 timeout = 7;
}