{# /***************************************************************************** File name: webmaster-panel-cron.html.twig Project: Villas3.com Copyright 2022-2024 Michael J. Miller, All rights reserved Purpose: panel content for cron schedule on webmaster page Requires: Revision History: Date Version Details -------- ------ ------------------------------------------------- 9/9/24 3.0a created 11/10/25 3.3 Adjusted description of daily cron ******************************************************************************/ #} {% macro schedule(date_time, today, run_flag) %} {% if run_flag > 1 %} Selected to run next time. {% elseif run_flag and date_time < today %} Will run next time because scheduled run time at {{date_time}} has passed. {% elseif not run_flag %} Disabled and will not run. Scheduled run time is {{date_time}}. {% else %} Next scheduled run is at {{date_time}}. {% endif %} {% endmacro %} {% set formName = "cron-schedule" %}
Schedule
Enabled
Run Next
Description
Always

Runs every time (usually every minute){{ globals.cron_always ? '' : ' but is currently disabled' }}.
Sends all unsent emails{{globals.auto_email ? '.' : '. Emails are currently disabled on "Manage Site" page, "Email" panel'}}. Also, depending on configuration settings, sends deferred pricing and availability channel updates and processes deferred webhook events.

Hourly
1 ? 'checked'}} title="Setting this will cause this schedule to run on next CRON run." />

Runs every hour.
{{ _self.schedule(globals.cron_hourly_date, today, globals.cron_hourly)|raw }}
Session garbage collection, update temperature for weather widget, remove orphaned payments and refunds.

Daily
1 ? 'checked'}} title="Setting this will cause this schedule to run on next CRON run." />

Runs once a day.
{{ _self.schedule(globals.cron_daily_date, today, globals.cron_daily) }}
Mark completed reservations, remove temporary reservations, make automatic payments, look for unpaid and double booked reservations, release calendar on deliquent reservations, clean up calendar, download weather. Send daily summary, reminder and review emails.

Weekly
1 ? 'checked'}} title="Setting this will cause this schedule to run on next CRON run." />

Runs once a week on Sunday.
{{ _self.schedule(globals.cron_weekly_date, today, globals.cron_weekly) }}
Clear out garbage (no customer or invalid and older than 1 day) reservations. Generate weekly summary email, download new booking.com reviews, update exchange rates.

Monthly
1 ? 'checked'}} title="Setting this will cause this schedule to run on next CRON run." />

Runs on the first day of each month.
{{ _self.schedule(globals.cron_monthly_date, today, globals.cron_monthly) }}
Check villa calendars and add days as needed to keep at least two years of future availability. Generate monthly summary email.

Yearly
1 ? 'checked'}} title="Setting this will cause this schedule to run on next CRON run." />

Runs on the first day of each year.
{{ _self.schedule(globals.cron_yearly_date, today, globals.cron_yearly) }}
Currently, does nothing. In the future, will remove obsolete, old data from database: channel events, stripe events, calendar days, emails, customers.