DOKK / manpages / debian 10 / libglobus-scheduler-event-generator-doc / globus_scheduler_event_generator_api.3.en
globus_scheduler_event_generator_api(3) globus_scheduler_event_generator globus_scheduler_event_generator_api(3)

globus_scheduler_event_generator_api - Scheduler Implementation API.


enum globus_scheduler_event_generator_error_t { GLOBUS_SEG_ERROR_TYPE_NULL = 1024, GLOBUS_SEG_ERROR_TYPE_ALREADY_SET, GLOBUS_SEG_ERROR_TYPE_INVALID_MODULE, GLOBUS_SEG_ERROR_TYPE_INVALID_FORMAT, GLOBUS_SEG_ERROR_TYPE_OUT_OF_MEMORY, GLOBUS_SEG_ERROR_TYPE_LOADING_MODULE }

Scheduler Implementation API.

Scheduler-specific SEG module implementations use this API to issue events to the Job State Monitor. Events occur whenever a job is placed in the scheduler's queue (PENDING), begins execution (ACTIVE), terminates successfully (DONE), or ends abnormally (FAILED).

A SEG module should register an event with the Globus event driver (most likely using either the Globus Callback or Globus XIO interfaces) in its activation function and then return. All events should be triggered from callbacks. When the SEG detects that it should terminate, it will deactivate the SEG module it started. The SEG module should wait for any outstanding callbacks to subside and before returning from its deactivation function to ensure that all events will be properly dispatched. After deactivation is complete, the SEG will unload the shared module and terminate.

Error types used by the SEG.

Enumerator

NULL Parameter
Already called a one-time function
Shared module missing descriptor
Invalid printf format for SEG protocol message
Out of memory
Unable to load scheduler module

Generated automatically by Doxygen for globus_scheduler_event_generator from the source code.

Wed Feb 27 2019 Version 6.1