pnscheduler 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Persistent NodeJS Scheduler - A simple job scheduler for Node.js applications, with Postgres-based persistence.
4
4
 
5
+ ![npm-version](https://img.shields.io/npm/v/pnscheduler)
6
+ ![Build](https://img.shields.io/github/actions/workflow/status/nilmus/pnscheduler/test.yml)
7
+
5
8
  ## Installation
6
9
 
7
10
  ```bash
@@ -103,8 +106,8 @@ console.log(dueJobs);
103
106
  ### Scheduler Control
104
107
 
105
108
  ```typescript
106
- // Start the scheduler (30s check interval)
107
- scheduler.start(3000);
109
+ // Adjust check frequency (defaults to 1 second)
110
+ scheduler.start(30); // check every 30 seconds
108
111
 
109
112
  // Stop the scheduler
110
113
  scheduler.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pnscheduler",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "Persistent NodeJS Scheduler - A simple job scheduler for Node.js applications, with Postgres-based persistence.",
5
5
  "keywords": [
6
6
  "node",