Hi @jonasrafael ,
Canceled and completed actions are automatically purged after 30 days. With a log that size, there may be something else going on to cause a large number of events to fire. You may want to check these issues and the discussions there for some potential causes of this.
You can temporarily shorten the purge period to 15 days with the following filter added to your theme’s functions.php file or using something like the Code Snippets plugin:
function adjust_action_scheduler_log_retention() {
return 4 * DAY_IN_SECONDS;
}
add_filter('action_scheduler_retention_period', 'adjust_action_scheduler_log_retention');