Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krhubert authored and hibiken committed Dec 10, 2023
1 parent 16ec43c commit fdbf54e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ type Config struct {
// If BaseContext is nil, the default is context.Background().
// If this is defined, then it MUST return a non-nil context
BaseContext func() context.Context

// TaskCheckInterval specifies the interval between checks for new tasks to process when all queues are empty.
//
// Be careful not to set this value too low because it adds significant load to redis.
// If unset, zero or a negative value, the interval is set to 1 second.
//
// If set to a zero or negative value, NewServer will overwrite the value with default value.
// Note: Setting this value too low may add significant load to redis.
//
// By default, TaskCheckInterval is set to 1 seconds.
TaskCheckInterval time.Duration
Expand Down

0 comments on commit fdbf54e

Please sign in to comment.