feat(catalog): persist idempotent bulk operations and retryable deliveries
This commit is contained in:
1 parent
76e46d295c
commit
13665e0c3c
53 files changed
+1316
-76
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { drainOperationEffects } from "../src/features/operations/worker";
|
||||
import { drainFurnitureImports } from "../src/lib/services/furni-job-worker";
|
||||
import "./load-env";
|
||||
import { Cron } from "croner";
|
||||
@@ -381,6 +382,10 @@ async function reportWorkerHeartbeat(): Promise<void> {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
new Cron("* * * * *", () => {
|
||||
void drainOperationEffects();
|
||||
});
|
||||
void drainOperationEffects();
|
||||
new Cron("* * * * *", () => {
|
||||
void drainFurnitureImports();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user