chore: add business logic

This commit is contained in:
Mahyargdz
2025-05-18 10:19:16 +03:30
parent 1bc8b23452
commit b5c90e8c2e
12 changed files with 119 additions and 187 deletions
@@ -0,0 +1,11 @@
export const SUBSCRIPTIONS = Object.freeze({
PROVISIONING_QUEUE_PREFIX: "provisioning",
PROVISIONING_QUEUE_NAME: "provisioning",
PROVISIONING_JOB_NAME: "business.created",
PROVISIONING_JOB_DELAY: 1000,
PROVISIONING_JOB_PRIORITY: 1, // high priority
PROVISIONING_JOB_ATTEMPTS: 3, // retry 3 times
PROVISIONING_JOB_BACKOFF: 5 * 1000, // retry after 5 second
PROVISIONING_JOB_TIMEOUT: 10000, //
});