Cron

The following hooks are provided for Cron Jobs related events.

AfterCronJob

Runs each time that the system calls the system cron job. This occurs after all scheduled tasks finish.

Parameters

No input parameters for this hook point

Response

No response supported

Example Code

<?php
add_hook('AfterCronJob', 1, function($vars) {
    // Perform hook code here...
});

DailyCronJob

uns at the very end of the daily automation cron execution..

Parameters

No input parameters for this hook point

Response

No response supported

Example Code

<?php
add_hook('DailyCronJob', 1, function($vars) {
    // Perform hook code here...
});

DailyCronJobPreEmail

Runs after tasks have completed but before email report is sent.

Parameters

No input parameters for this hook point

Response

No response supported

Example Code

<?php
add_hook('DailyCronJobPreEmail', 1, function($vars) {
    // Perform hook code here...
});

PopEmailCollectionCronCompleted

Executes when the POP email collection cron completes.

Parameters

VariableTypeNotes
errorsArrayAn array of errors if an error occurred while attempting to connect to one or more mailboxes

Response

No response supported

Example Code

<?php
add_hook('PopEmailCollectionCronCompleted', 1, function($vars) {
    // Perform hook code here...
});

PostAutomationTask

Executes after an automation task occurs.

Parameters

VariableTypeNotes
taskArrayTask Related Information in array set with completion status

Response

No response supported

Example Code

<?php
add_hook('PostAutomationTask', 1, function($vars) {
    // Perform hook code here...
});

PreAutomationTask

Executes before an automation task occurs.

Parameters

VariableTypeNotes
taskArrayTask Related Information in array set

Response

No response supported

Example Code

<?php
add_hook('PreAutomationTask', 1, function($vars) {
    // Perform hook code here...
});

PreCronJob

Runs before the daily automation cron execution.

Parameters

VariableTypeNotes


No input parameters for this hook point.

Response

No response supported

Example Code

<?php
add_hook('PreCronJob', 1, function($vars) {
    // Perform hook code here...
});