diff --git a/include/crm/common/scheduler.h b/include/crm/common/scheduler.h index 5eb8b03600..47ed0ccdbd 100644 --- a/include/crm/common/scheduler.h +++ b/include/crm/common/scheduler.h @@ -1,242 +1,249 @@ /* * Copyright 2004-2023 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU Lesser General Public License * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. */ #ifndef PCMK__CRM_COMMON_SCHEDULER__H # define PCMK__CRM_COMMON_SCHEDULER__H #include // time_t #include // xmlNode #include // guint, GList, GHashTable #include // crm_time_t #include #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /*! * \file * \brief Scheduler API * \ingroup core */ //! Possible responses to loss of quorum enum pe_quorum_policy { pcmk_no_quorum_freeze, // pcmk_tag_t *) int blocked_resources; //!< Number of blocked resources in cluster int disabled_resources; //!< Number of disabled resources in cluster GList *param_check; //!< History entries that need to be checked GList *stop_needed; //!< Containers that need stop actions time_t recheck_by; //!< Hint to controller when to reschedule int ninstances; //!< Total number of resource instances guint shutdown_lock; //!< How long to lock resources (seconds) int priority_fencing_delay; //!< Priority fencing delay // pcmk__output_t * void *priv; //!< For Pacemaker use only guint node_pending_timeout; //!< Pending join times out after this (ms) }; -// Whether the scheduler input currently being processed has errors +/* Whether the scheduler input currently being processed has errors + * + * @COMPAT When we can break API compatibility, we should make this + * internal-only. Ideally it would be converted to a pcmk_scheduler_flags + * value, but everywhere it's needed doesn't currently have access to the + * scheduler data. + */ +//! \deprecated Do not use extern gboolean was_processing_error; #ifdef __cplusplus } #endif #endif // PCMK__CRM_COMMON_SCHEDULER__H