def METHOD_NAME(self, task: SyncFlowTask) -> None:
    """Add SyncFlowTask to the queue
    Skips if the executor is in the state of being shut down.
    Parameters
    ----------
    task : SyncFlowTask
        SyncFlowTask to be added.
    """
    if self.should_stop():
        LOG.debug(
            "%s is skipped from queueing as executor is in the process of stopping.", task.sync_flow.log_prefix
        )
        return
    super().METHOD_NAME(task)