How to implement Cron jobs with multiple databases?

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.

Do whatever it is you do to run your first cron job, but again for the next vendor.

If this doesn’t seem like an answer to your question, post some code and we can give more specific advice. :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.