Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide statistics on the number of retry attempts #6

Closed
jd opened this issue Aug 17, 2016 · 2 comments
Closed

Provide statistics on the number of retry attempts #6

jd opened this issue Aug 17, 2016 · 2 comments
Milestone

Comments

@jd
Copy link
Owner

jd commented Aug 17, 2016

That could be useful to be able to trace things, etc.

@jd jd added the enhancement label Aug 17, 2016
@jd jd added this to the 2.0.0 milestone Aug 17, 2016
@harlowja
Copy link
Contributor

Ya, that'd be nice,

    @abc.abstractproperty
    def statistics(self):
        """A dictionary of runtime statistics this engine has gathered.
        This dictionary will be empty when the engine has never been
        ran. When it is running or has ran previously it should have (but
        may not) have useful and/or informational keys and values when
        running is underway and/or completed.
        .. warning:: The keys in this dictionary **should** be some what
                     stable (not changing), but there existence **may**
                     change between major releases as new statistics are
                     gathered or removed so before accessing keys ensure that
                     they actually exist and handle when they do not.
        """

We can use a similar docstring :-P (the above is from a taskflow engine).

harlowja added a commit to harlowja/tenacity that referenced this issue Aug 20, 2016
Fixes issue jd#6
@jd jd closed this as completed Aug 25, 2016
@crowdwave
Copy link

statistics has moved, see

#486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants