sammler-jobs-service

Job service for sammler.

Usage no npm install needed!

<script type="module">
  import sammlerJobsService from 'https://cdn.skypack.dev/sammler-jobs-service';
</script>

README

sammler-jobs-service

Job service for sammler.

CircleCI

Purpose

Very simple, opinionated and re-usable service to log hierarchical jobs to MongoDB:

  • Save the state of jobs & sub-jobs to MongoDB
  • Update their status
  • Retrieve the current state of a job
  • Get the history of jobs

Configuration

sammler-jobs-service can be configured by the following environment variables:

  • PORT - The port to run the REST API (defaults to 3003).

Configuration for dependent services (in development mode)

  • SAMMLER_DB_JOBS_URI - URI for the MongoDB Jobs database. Defaults to mongodb://localhost:27117/jobs

Note: MongoDB runs on port 27117 to prevent conflicts with running the entire sammler development-environment at the same time.

Author

Stefan Walther

License

Released under the MIT license.