Skip to content

why is run_one_last_time set to False if callback_by_exception is defined #20

@laur89

Description

@laur89

See https://github.com/pnpnpn/retry-decorator/blob/master/retry_decorator/retry_decorator.py#L34:
when callback_by_exception is defined and in effect, then run_one_last_time is defaulted to False.

  1. why is it so?
  2. what's the purpose of run_one_last_time to begin with? To be able to swallow exceptions by the retry logic?

In any case, run_one_last_time should always default to True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions