MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / WithMaxTaskExecution

Function WithMaxTaskExecution

pkg/queue/options.go:46–50  ·  view source on GitHub ↗

WithMaxTaskExecution set maximum execution time for a Task.

(d time.Duration)

Source from the content-addressed store, hash-verified

44
45// WithMaxTaskExecution set maximum execution time for a Task.
46func WithMaxTaskExecution(d time.Duration) Option {
47 return OptionFunc(func(q *options) {
48 q.maxTaskExecution = d
49 })
50}
51
52// WithRetryDelay set retry delay
53func WithRetryDelay(d time.Duration) Option {

Callers 6

ThumbQueueMethod · 0.92
MediaMetaQueueMethod · 0.92
IoIntenseQueueMethod · 0.92
RemoteDownloadQueueMethod · 0.92
EntityRecycleQueueMethod · 0.92
SlaveQueueMethod · 0.92

Calls 1

OptionFuncFuncType · 0.70

Tested by

no test coverage detected