Commit 385399c6 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

make alias: Pipeline.retry

parent 96f260e6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -17,9 +17,9 @@ import subprocess
import traceback
import warnings
from typing import Callable, NamedTuple, Optional, Any

from astropy.time import Time, TimeDelta

from .utils import retry
from .ccds import CCDS
from .dfs import DFS
from .file import File
@@ -27,7 +27,6 @@ from .logger import get_logger
from .status import CsstStatus, CsstResult


# TODO: unit test in need
class Pipeline:
    """
    CSST pipeline configuration class.
@@ -223,6 +222,10 @@ class Pipeline:
                output=output,
            )

    @staticmethod
    def retry(*args, **kwargs):
        return retry(*args, **kwargs)


# class ErrorTrace:
#     """Write error trace to file."""