I have build a saas product with angular integrated with golang rest api, this project provide vendors of a firm to maintain their store ( like shopify but for a small organization only ) where each vendor has a different database. on daily basis system should run corn jobs to send email and notification to their merchants. Each vendor has store setup on a sub-domain like merchant1.store.com and db with name merchant_1_db.
I used golang schedules to setup cron jobs but they are not running per vendor. I need help on how to setup parallel cron jobs for various merchants.
cron:
- description: "daily merchant1 mailout"
url: /mail/merchant1
schedule: every 24 hours
- description: "daily merchant2 mailout"
url: /mail/merchant2
schedule: every 24 hours
-
description: "daily merchant3 mailout"
url: /mail/merchant3
schedule: every 24 hours