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

@convex-dev/crons

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@convex-dev/crons - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json

@@ -10,3 +10,3 @@ {

},
"version": "0.1.4",
"version": "0.1.5",
"license": "Apache-2.0",

@@ -13,0 +13,0 @@ "keywords": [

@@ -5,4 +5,2 @@ # Crons Convex Component

**Note: Convex Components are currently in beta.**
<!-- START: Include on https://convex.dev/components -->

@@ -15,2 +13,20 @@

```ts
// Register a cron to run once per day.
const daily = await crons.register(
ctx,
{ kind: "cron", cronspec: "0 0 * * *" },
internal.example.logStuff,
{ message: "daily cron" }
);
// Register a cron to run every hour.
const hourly = await crons.register(
ctx,
{ kind: "interval", ms: 3600000 },
internal.example.logStuff,
{ message: "hourly cron" }
);
```
It supports intervals in milliseconds as well as cron schedules with the same

@@ -17,0 +33,0 @@ format as the unix `cron` command:

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