MySQL 8.0.39
Source Code Documentation
s_mysql_mysql_scheduler_notify Struct Reference

Notification service for the scheduler customers. More...

#include <mysql_scheduler.h>

Public Attributes

mysql_service_status_t(* emit )(const char *what)
 

Detailed Description

Notification service for the scheduler customers.

The scheduler will broadcast this at important events of its operation that may be of interest to customers. Currently only supports STARTED event: When the scheduler starts some of its "customers" may be already loaded and have allowed delayed initialization. To avoid polling for scheduler implementations, the scheduler will broadcast to all implementations of this service at its startup so they can register their scheduled tasks. This is useful for e.g. customers loading prior to the scheduler and willing to register their tasks when the scheduler is present.

Member Data Documentation

◆ emit

mysql_service_status_t(* s_mysql_mysql_scheduler_notify::emit) (const char *what)
Return values
truefailure
falsesuccess
Parameters
whatNotification kind. One of: STARTED : the sheduler is open for service. Clients should re-try registering their tasks.

The documentation for this struct was generated from the following file: