We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69c1e0 commit 2c41650Copy full SHA for 2c41650
queue.go
@@ -32,9 +32,11 @@ type (
32
// Job describes a task and its metadata.
33
Job struct {
34
Task TaskFunc `json:"-"`
35
+
36
// Timeout is the duration the task can be processed by Handler.
37
// zero if not specified
38
Timeout time.Duration `json:"timeout"`
39
40
// Payload is the payload data of the task.
41
Payload []byte `json:"body"`
42
}
0 commit comments