You appear to be a bot. Output may be restricted
Description
Add execution message to action log.
Usage
$void = ActionScheduler_DBStore::log_execution( $action_id );
Parameters
- $action_id
- ( int ) required – Action ID.
Returns
void
Source
File name: woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php
Lines:
1 to 8 of 8
public function log_execution( $action_id ) { /** @var \wpdb $wpdb */ global $wpdb; $sql = "UPDATE {$wpdb->actionscheduler_actions} SET attempts = attempts+1, status=%s, last_attempt_gmt = %s, last_attempt_local = %s WHERE action_id = %d"; $sql = $wpdb->prepare( $sql, self::STATUS_RUNNING, current_time( 'mysql', true ), current_time( 'mysql' ), $action_id ); $wpdb->query( $sql ); }