Need help writing a script in go lang to generate backdated pdfs.
The project is an invoice generator. Parallel processes with waitgroups and channels
Modify the existing script to generate 1M backdated pdfs after querying appointment ids from db.
Fetch modes and fail safe.
2 fetch modes: Get ids in a range and paginated scan of the appointments.
fail-safe: In case of failure, should know which id to pick next.
Has to be run in parallel using wait groups and channels
Extremely time sensitive and urgent