//! [`WorkflowPause`] entity -- a workflow whose pending runs are held back.
//!
//! While a workflow is paused, workers do not pick its `Pending` or
//! `Retrying` runs. Runs already executing are left alone, and new runs are
//! still created: they wait in the queue until the workflow is resumed.
use ;
use ;
use Uuid;
/// A persisted pause of every queued run of one workflow.
///
/// # Examples
///
/// ```
/// use chrono::Utc;
/// use ironflow_store::entities::WorkflowPause;
///
/// let pause = WorkflowPause {
/// workflow_name: "deploy".to_string(),
/// paused_at: Utc::now(),
/// paused_by: None,
/// };
/// assert_eq!(pause.workflow_name, "deploy");
/// ```