@pikku/queue-pg-boss 0.12.12 → 0.12.13
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.
|
@@ -36,7 +36,7 @@ export class PgBossSchedulerService extends SchedulerService {
|
|
|
36
36
|
session,
|
|
37
37
|
};
|
|
38
38
|
// Use send() with startAfter for one-off delayed execution
|
|
39
|
-
const taskId = await this.pgBoss.send('pikku-
|
|
39
|
+
const taskId = await this.pgBoss.send('pikku-mesh-rpc', jobData, {
|
|
40
40
|
startAfter: new Date(Date.now() + delayMs),
|
|
41
41
|
singletonKey: `${rpcName}-${Date.now()}`, // Ensure uniqueness
|
|
42
42
|
});
|
|
@@ -49,14 +49,14 @@ export class PgBossSchedulerService extends SchedulerService {
|
|
|
49
49
|
* Unschedule (cancel) a task by ID
|
|
50
50
|
*/
|
|
51
51
|
async unschedule(taskId) {
|
|
52
|
-
await this.pgBoss.cancel('pikku-
|
|
52
|
+
await this.pgBoss.cancel('pikku-mesh-rpc', taskId);
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Get a scheduled task by ID with full details
|
|
57
57
|
*/
|
|
58
58
|
async getTask(taskId) {
|
|
59
|
-
const job = await this.pgBoss.getJobById('pikku-
|
|
59
|
+
const job = await this.pgBoss.getJobById('pikku-mesh-rpc', taskId);
|
|
60
60
|
if (!job) {
|
|
61
61
|
return null;
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/queue-pg-boss",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/pikkujs/pikku.git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@pikku/core": "^0.12.
|
|
25
|
+
"@pikku/core": "^0.12.146"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"pg-boss": "^12.38.0"
|