I created my Events to handle adding new partitions (and removing old ones) from my log table and they seem to be working. However, today I noticed that the events ran a few hours later than they ran yesterday.
EVENT_TYPE: RECURRING
EXECUTE_AT: NULL
INTERVAL_VALUE: 1
INTERVAL_FIELD: DAY
SQL_MODE:
STARTS: 2008-02-13 05:36:21
ENDS: NULL
STATUS: ENABLED
ON_COMPLETION: NOT PRESERVE
CREATED: 2008-02-13 05:36:21
LAST_ALTERED: 2008-02-13 05:36:21
LAST_EXECUTED: 2008-02-14 07:32:22
My addpartition event is current date dependent: it creates a
partition for tomorrow hopefully before tomorrow comes so we
don't miss a partition and so my INSERTs don't get "No partition"
errors. So if it waits a few extra hours more each day,
gradually it will push past midnight and screw things up. …