> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/ha-and-performance/optimization-and-tuning/buffers-caches-and-threads/thread-states/event-scheduler-thread-states.md).

# Event Scheduler Thread States

This article documents thread states that are related to [event](/docs/server/server-usage/triggers-events/event-scheduler/events.md) scheduling and execution. These include the Event Scheduler thread, threads that terminate the Event Scheduler, and threads for executing events.

These correspond to the `STATE` values listed by the [SHOW PROCESSLIST](/docs/server/reference/sql-statements/administrative-sql-statements/show/show-processlist.md) statement or in the [Information Schema PROCESSLIST Table](/docs/server/reference/system-tables/information-schema/information-schema-tables/information-schema-processlist-table.md) as well as the `PROCESSLIST_STATE` value listed in the [Performance Schema threads Table](/docs/server/reference/system-tables/performance-schema/performance-schema-tables/performance-schema-threads-table.md)

| Value                         | Description                                                                            |
| ----------------------------- | -------------------------------------------------------------------------------------- |
| Clearing                      | Thread is terminating.                                                                 |
| Initialized                   | Thread has be initialized.                                                             |
| Waiting for next activation   | The event queue contains items, but the next activation is at some time in the future. |
| Waiting for scheduler to stop | Waiting for the event scheduler to stop after issuing SET GLOBAL event\_scheduler=OFF. |
| Waiting on empty queue        | Sleeping, as the event scheduler's queue is empty.                                     |

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
