123456789101112131415161718192021222324252627282930313233343536 |
- #//# --------------------------------------------------------------------------------------
- #//# Created using Sequence Diagram for Mac
- #//# https://www.macsequencediagram.com
- #//# https://itunes.apple.com/gb/app/sequence-diagram/id1195426709?mt=12
- #//# --------------------------------------------------------------------------------------
- title "How to Run CronJob by Golang API"
- participant Backend_CronJobs as cron
- participant Frontend_api23_cronjob as frontend
- participant Backend_API as backend
- participant ERP_DB as erpdb
- #participant MemoryDB as bunt_db
- activate cron
- cron->cron: awake cronjob at 03:00AM
- activate frontend
- cron->frontend: request /api23-cronjobs
- activate backend
- frontend->backend: request /member-pare
- backend->frontend: response 200 %{member-page}
- deactivate backend
- frontend->frontend: send dormant schedule mail
- frontend->frontend: get failed-mail member page
- activate backend
- frontend->backend: request /member-act
- backend->frontend : response {id list}
- deactivate backend
- deactivate frontend
|