@classmethod
def cancel_all(cls, pipeline):
    """Cancel all jobs via SLURM scancel corresponding to pipeline.

        Parameters
        ----------
        pipeline : str | dict
            Pipeline config file path or dictionary.
        """
    pipe = cls(pipeline)
    pipe._cancel_all_jobs()
