Skip to content

Commit 2b09481

Browse files
authored
Jobs: don't force data payload (#782)
There is no requirement for a job to have a data payload. Remove this check on the jobs client. Signed-off-by: joshvanl <me@joshvanl.dev>
1 parent 6dd4349 commit 2b09481

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

client/jobs.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ func (c *GRPCClient) ScheduleJobAlpha1(ctx context.Context, job *Job) error {
160160
if job.Name == "" {
161161
return errors.New("job name is required")
162162
}
163-
if job.Data == nil {
164-
return errors.New("job data is required")
165-
}
166163

167164
jobRequest := &runtimepb.Job{
168165
Name: job.Name,

0 commit comments

Comments
 (0)