Task Types

Tasks are background jobs that run on a schedule, handling maintenance and reporting. They're created as ScheduledTask records in the admin panel with a recur_in_x_days value for automatic rescheduling.


Salesforce Check

Key: real donations salesforce check

Checks whether real test donations (credit card and bank) have arrived in Salesforce. Updates the salesforce_status field on each ScheduledTest.

Not Found Check

Key: Check not found donations

Generates an Asana task listing all donations that haven't been found in Salesforce within 21 days. This flags potential payment processing issues.

Cancel Subscriptions

Key: Cancel Subscriptions

Cancels sandbox monthly donation subscriptions created by testRealCreditCardDonations. Production Salesforce access from LTI is read-only, so bank-donation recurring subscriptions are counted for operator visibility but excluded from automation. They do not determine the sandbox cleanup task result and remain manual work.

Email Reports

Key: Email Reports

Sends email reports with test statistics and results to the specified recipients.

Payment Gateway Healthcheck

Key: Payment Gateway Healthcheck

Collects transaction data from payment gateways (Stripe, PayPal, GoCardless) and stores it for the PG Report dashboard.

FRAPI Queue Healthcheck

Key: FRAPI Queue Healthcheck

Reads aggregate status from the production frapi_cgo.request queue through LTI's scoped direct database identity. It detects pending or in-progress work whose last activity is stale and recent concentrations of terminal failures. The failure window uses last queue activity so retries of older submissions remain visible. Latest-success lookup uses the production (status, submitted) index without scanning all historical success rows.