You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2020. It is now read-only.
setup a new worker and set numberOfTasksToRun to 1.
start worker
create a task for the worker to pick
the worker runs the task, and exits as expected.
restart the worker
create another task
the worker runs the task, and stays running. It will stay up forever and pick new tasks.
Alternative scenario:
setup a new worker
start worker
create tasks to test the worker
kill worker
change numberOfTasksToRun to 1
restart worker
create tasks
worker stays up forever and picks new tasks as they come.
Essentially, the problem is that tasks-resolved-count.txt persists the number of tasks the worker has done between worker runs, and numberOfTasksToRun is compared against that persisted number, not the number of tasks that have been run since the worker process started for the last time.