1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #//# --------------------------------------------------------------------------------------
- #//# 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 \nat 03:00AM
- activate frontend
- cron->frontend: request /api23-cronjobs
- activate backend
- frontend->backend: request /member-page \n withdrawal-schedule list\n Query( ( withdraw_on - 4일 ) = 현재일자 )
- backend->frontend: response 200 \n%{member-page}
- deactivate backend
- frontend->frontend: withdraw schecudule mail log
- activate backend
- frontend->backend: request /withdraw-member-finish
- backend->erpdb: fill 'unknown' into member records
- backend->erpdb: fill 'unknown' into member_ext records
- backend->frontend : response {id list}
- deactivate backend
- frontend->cron: response 200
- frontend->frontend: withdraw finish log
- deactivate frontend
- deactivate cron
|