We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9675705 commit 77c213dCopy full SHA for 77c213d
client/scheduling.go
@@ -24,7 +24,7 @@ import (
24
25
type Job struct {
26
Name string
27
- Schedule string
+ Schedule string // Optional
28
Repeats uint32 // Optional
29
DueTime string // Optional
30
TTL string // Optional
@@ -33,11 +33,10 @@ type Job struct {
33
34
// ScheduleJobAlpha1 raises and schedules a job.
35
func (c *GRPCClient) ScheduleJobAlpha1(ctx context.Context, job *Job) error {
36
- // TODO: Assert job fields are defined: Name, Schedule, Data
+ // TODO: Assert job fields are defined: Name, Data
37
jobRequest := &pb.Job{
38
- Name: job.Name,
39
- Schedule: &job.Schedule,
40
- Data: job.Data,
+ Name: job.Name,
+ Data: job.Data,
41
}
42
43
if job.Schedule != "" {
0 commit comments