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

Support task retries #53

Closed
OmarWKH opened this issue Oct 4, 2020 · 1 comment
Closed

Support task retries #53

OmarWKH opened this issue Oct 4, 2020 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@OmarWKH
Copy link
Collaborator

OmarWKH commented Oct 4, 2020

Retrying tasks causes an error.

I think it's because Progress.get_info reaches the last line and returns an exception. The view tries to send it as JSON but can't.

return self.result.info

Example task:

def retry_task():
    try:
        raise StopIteration('We broke it!')
    except StopIteration as exc:
        raise self.retry(exc=exc)
@czue czue added bug Something isn't working help wanted Extra attention is needed labels Oct 5, 2020
@EJH2
Copy link
Collaborator

EJH2 commented Oct 26, 2020

Fixed in #61

@EJH2 EJH2 closed this as completed Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants