Hi there,
I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc.
But each customer needs 5 hours to complete.
Is it possible to trigger all the reports for all the customers without waiting each one to complete?
I read something about threads but I am not sure if this is the solution.
for c in customers:
create_reports(a,b,c,d)
Any ideas?