Skip to content
This repository was archived by the owner on Feb 20, 2020. It is now read-only.
This repository was archived by the owner on Feb 20, 2020. It is now read-only.

numberOfTasksToRun only works once #110

@glandium

Description

@glandium
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions