</> Developers Guide to Funraisin

Crons

Each Funraisin uses crons to perform various automated tasks e.g. Scheduled Donations or Campaign Monitor Syncs.

Below is a guide on what crons are supported and how they can be used.

Standard Crons

Every Funraisin site has around 10 crons by default which run at various times of the day / night performing certain tasks.

cron/cleandonationsdata
This is a data cleaner that runs twice daily, usually around midday and around midnight.

cron/dobackup
This creates a static backup of the website's database and stores it in a private repository, generally runs also around midday and midnight but staggered across different sites.

cron/domailer
Triggers any scheduled SMS or Emails to be sent out. Runs hourly.

cron/cleantempfiles
A general rubbish collection on temp files like uploaded profile pics that weren't submitted to the CDN.

cron/doscheduledreports
Triggers any reports that are temporarily scheduled to send due to them being too large to download.

cron/doreports
Triggers the main scheduled reports that get emailed or dumped onto a sFTP server.

cron/dosmartlists
Runs hourly, this updates any smart lists.

cron/dorecurringdonations
Runs daily at around 1am, this is processed any scheduled payments such as recurring donations, etc. It also handles credit card expiry reminders and failed transaction retries.

cron/doautopilot
Triggers the standard AutoPilot sync, runs hourly.

cron/domailchimp
Triggers the standard MailChimp sync, runs hourly.

cron/docampaignmonitor
Triggers the standard Campaign Monitor sync, runs hourly.

cron/dosalesforceV2
Triggers the standard Salesforce Sync, runs hourly but stagged across different sites.

Cron Logs

Besides the standard cron logs that exist on the server which aren't able to be accessed by anyone but Funraisin, we also store the cron logs in the admin so you can always see if a cron has fired.

Cron logs can be accessed via Platform Setup > General > Cron Logs

CMS_crons_history

When adding in custom scripts that are executed via a cron it's good practice to also have your custom script create an entry in the cron logs.

["id","name","description","num_records","date_created"]

Custom Crons

Funraisin developers add custom crons frequently to perform various tasks, often they are used to manage custom syncs to various platforms or very commonly used to create custom fields based on certain criteria which can then be synced using one of our standard syncs.

A custom cron can only be added by Funraisin developers with access to the servers and they always use the Custom Controller to handle the task.