PENDING_RETRY datamart jobs whose last attempt falls within the
previous day (Bangkok time 00:00–23:59). For each job it attempts to re-deliver
the payload to the datamart target using a fresh token. Jobs that still fail are
marked PERMANENTLY_FAILED.
PERMANENTLY_FAILED datamart jobs from the current
reporting window (since last Bangkok 01:00) and sends a failure report email
with a password-protected CSV attachment.