1.0.17 • Published 10 months ago

@asmartbear/jobs v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago