Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --num-tasks description #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ worker:
exitOnEmpty: false
# If exitOnEmpty is true, worker waits for exit in the grace period
exitOnEmptyGracePeriod: 10s
# If the value was positive, worker will exit
# If the value was non-negative, worker will exit
# after processing the number of tasks
numTasks: 1000
# Base directory to create workspace for task handler processes
Expand Down
2 changes: 1 addition & 1 deletion cmd/start_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func init() {
flag.Duration("exit-on-empty-grace-period", cmdOpts.Worker.ExitOnEmptyGracePeriod, "if exit-on-empty is true, worker waits for exit in the grace period")
viperBindPFlag("Worker.ExitOnEmptyGracePeriod", cmdOpts.Worker.ExitOnEmptyGracePeriod.String(), flag.Lookup("exit-on-empty-grace-period"))

flag.Int("num-tasks", cmdOpts.Worker.NumTasks, "if set positive value, worker exits after processing the number of tasks")
flag.Int("num-tasks", cmdOpts.Worker.NumTasks, "if set non-negative value, worker exits after processing the number of tasks")
viperBindPFlag("Worker.NumTasks", strconv.Itoa(cmdOpts.Worker.NumTasks), flag.Lookup("num-tasks"))

flag.String("work-dir", cmdOpts.Worker.WorkDir, "worker's working directory. the dir must be writable")
Expand Down