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

@timeloop.job does not accept arguments #7

Open
niloysh opened this issue Jul 9, 2019 · 1 comment
Open

@timeloop.job does not accept arguments #7

niloysh opened this issue Jul 9, 2019 · 1 comment

Comments

@niloysh
Copy link

niloysh commented Jul 9, 2019

While adding tasks using the decorator, it does not accept arguments.

It may be fixed by:

def job(self, interval):
    def decorator(f):
       # fix: this wrapper needs to be added
        def wrapper(*args, **kwargs):
            self._add_job(f, interval, *args, **kwargs)
            return f
        return wrapper
    return decorator
ukchukx added a commit to ukchukx/timeloop that referenced this issue Sep 7, 2019
Solves issue sankalpjonn#7 on the main repo.
@ukchukx
Copy link

ukchukx commented Sep 7, 2019

See this pull request

ukchukx added a commit to ukchukx/timeloop that referenced this issue Sep 10, 2019
Solves issue sankalpjonn#7 on the main repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants