cronstorm

1.1.1 • Public • Published

CronStorm CLI — scalable job scheduling as a service

CronStorm CLI - calable job scheduling as a service.

Examples

Every second:

cronstorm \ 
  every 1 second \
  for 12 weeks \ 
  PATCH https://api.example.com/ticker-price-cache

Once a month:

cronstorm \ 
  every 1 month \ 
  for 12 months \
  post https://admin.example.com/payroll

Just once:

cronstorm \
  every 1 hour \
  for 1 hour \
  POST https://marketing.example.com/reply-mail

Getting it

npm i -g cronstorm 

Some people need to use sudo with -g

More usage

To start a job:

cronstorm every 1 second for 12 weeks \ 
  post https://app.io/new-customers \
  --body={"action":"greet", "allow":"push,email,sms"}

To stop a job:

cronstorm end <id>

Authing In

If you want to change the key you use, Auth in.

cronstorm auth
> Open this link in your browser: https://cronstorm.com
> Enter API key: 

What do you support?

For times cronstorm accepts second, minute, hour, day, week or month.

For request types cronstorm accept get, head, post, put, patch.

Supported request types

GET:

cronstorm every 3 second for 9 days \
  post https://news.host.com/api/rebuild-leaders

JSON POST:

cronstorm every 1 second for 2 weeks \
  post https://app.co/new-churners \
  --body={action:"survey", allow:"email"}

Anything:

cronstorm every 1 day for 15 weeks put https://blog.me.com \ 
  --body='reminder=homework&reminder=exercise' \ 
  --contentType='application/x-www-form-urlencoded'

More help

cronstorm --help

Show HN

Readme

Keywords

Package Sidebar

Install

npm i cronstorm

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

8.26 kB

Total Files

4

Last publish

Collaborators

  • dosy