Skip to content

@qcore.retry() doesn't work on classmethods #35

@JelleZijlstra

Description

@JelleZijlstra

In the following,

class X:
    @qcore.retry(KeyError)
    @asynq.async()
    @classmethod
    def f(cls): pass
    @qcore.retry(Exception)
    @classmethod
    def g(cls): pass

Neither X.f nor X.g can be called any more.

Fixing this probably requires reimplementing @retry using qcore.decorators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions