Socket
Socket
Sign inDemoInstall

@apio/gravity-worker

Package Overview
Dependencies
5
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apio/gravity-worker

Package to help handle Apio Gravity jobs.


Version published
Weekly downloads
17
decreased by-63.04%
Maintainers
2
Install size
4.05 MB
Created
Weekly downloads
 

Readme

Source

Apio Gravity Worker Helper

Helps you implement gravity job workers:


const {Worker} = require('/path/to/apio-gravity-worker/index.js')

const w = new Worker({
      topic: 'project.resource.action',
      scheduling: '* * * * *',
      gravityUrl: config.gravityBaseUrl
})

// React to a job
w.on('job', async job => {
  console.log("New job received",job)
})

// Starts the cron
w.start()

// Not waiting for the first cron tick running it right away
w.dequeue()

FAQs

Last updated on 15 Jun 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc