Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wealthbar/chronos

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wealthbar/chronos

run work regularly, requires postgresql to track schedules and runs

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Chronos

Mini sidekiq like runner for scheduling work on a worker.

This can't be directly used as-is, and takes some work to setup.

Setup

Create a migration based on the data/seed.sql file here to create the tables and indexes chronos will use for scheduling work and tracking runs.

Create a worker script, based on eg/main.ts, that will be spawned under its own nodejs process in your docker.

The environment variable 'CHRONOS_RUNNER_ID' is used in the example code to control the worker ID used. Generally you should have one and only one worker, but since two nodes could overlap during deployments the runner id is used to latch runs to a specific worker and prevent other workers from touching those runs.

Keywords

FAQs

Package last updated on 19 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc