1.0.17 • Published 12 months ago

@asmartbear/jobs v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Jobs

Simple job-runner with features:

  • Max simultaneous threads, but also max-per-tag
  • Tasks dependent on specific other tasks being complete
  • Tasks dependent on all tagged tasks being complete
  • Wait for a specific task to complete

Execution queue

  • All else being equal, tasks are started in the order they were enqueued.
  • Tasks will not start based on:
    • max running tasks per tag
    • dependency on specific other tasks
    • dependency on all tasks tagged by a given set of tags
  • Tasks that have to wait maintain their position in the queue.
  • Any error stops kicking off new tasks, allows existing tasks to complete, and the error is available.

Development Usage

Build:

npm run build

Unit tests:

npm run test

Unit tests, refreshed live:

npm run watch

Prepare for release (e.g. run tests and bump version number), then publish to npm:

npm run release && npm publish
1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

12 months ago

1.0.13

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago