My recurring job bills my clients on a set date using cronexpr. What happens is that it triggers and bills the client account 7 times on each occasion. I do not know what is happening. I have this pseudo code below
public static void AutomaticPayDo(int id)
{
var auto = db.AutomaticPayments.Where(i => i.DDPayId == id).ToList();
for (var i = 0; i < auto.Count; i++)
{
create invoices
}
process payment - with total payment required value
if successful
update invoice as paid
send email
}
The cron reads like this in dashboard
At 06:00 PM, on day 24 of the month
Dashboard reads 40 workers
Server is a Quad Core