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

Try to catch / workaround 5215 #5216

Merged
merged 6 commits into from
Dec 3, 2022
Merged

Try to catch / workaround 5215 #5216

merged 6 commits into from
Dec 3, 2022

Conversation

zhiltsov-max
Copy link
Contributor

@zhiltsov-max zhiltsov-max commented Nov 1, 2022

Motivation and context

Fixes #5215

It's not really clear how the error can be obtained, but this PR adds a workaround for the problem. There are 2 possible ways to get the message parameter - from an error and from the operation status.

  • Our status messages are always represented by a string, no any other values is assigned.

  • rq is trickier here - it receives rq data and decodes it if there is an error, but the operations can leave None as the exc_info value. Maybe this issue is relevant here.

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@zhiltsov-max zhiltsov-max changed the title Try to catch / workaround 5215 [WIP] Try to catch / workaround 5215 Nov 7, 2022
@zhiltsov-max zhiltsov-max changed the title [WIP] Try to catch / workaround 5215 Try to catch / workaround 5215 Nov 8, 2022
@nmanovic nmanovic merged commit 2a2c43f into develop Dec 3, 2022
@nmanovic nmanovic deleted the zm/catch-5215 branch December 3, 2022 06:27
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
Fixes cvat-ai#5215

It's not really clear how the error can be obtained, but this PR adds a
workaround for the problem. There are 2 possible ways to get the
`message` parameter - from an error and from the operation status.

- Our status messages are always represented by a string, no any other
values is assigned.

- rq is trickier here - it receives rq data and [decodes
it](https://github.com/rq/rq/blob/master/rq/job.py#L603-L609) if there
is an error, but the operations can leave None as the `exc_info` value.
Maybe [this issue](rq/rq#1633) is relevant
here.
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

Successfully merging this pull request may close these issues.

Task status sometimes can fail with empty message
2 participants