ShotRetryConfig

class caqtus.experiment_control.sequence_execution.ShotRetryConfig(
exceptions_to_retry: tuple[type[Exception], ...] = NOTHING,
number_of_attempts: int = attr_dict['number_of_attempts'].default,
)

Bases: object

Specifies how to retry a shot if an error occurs.

exceptions_to_retry

If an exception occurs while running a shot, it will be

Type:

tuple[type[Exception], …]

retried if it is an instance of one of the exceptions in this tuple.
number_of_attempts

The number of times to retry a shot if an error occurs.

Type:

int