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

fix(python backoff): fix bug when using builtin backoff type #2265

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

HalfdanJ
Copy link
Contributor

@HalfdanJ HalfdanJ commented Nov 7, 2023

When a builtin backoff type is used, the lookup was expecting and object with a property type, but the passed value from the job is a dict. This fixes the lookup and adds a test for it.

Before the fix, an exception would be thrown:

Error moving job to failed 'dict' object has no attribute 'type'

When a builtin backoff type is used, the lookup was expecting and object with a property type, but
the passed value from the job is a dict. This fixes the lookup and adds a test for it.
Delay lookup from backoff was done using .delay, but backoff is a dict so needs to be done using
.get
@HalfdanJ HalfdanJ changed the title fix(python backoffs lookup bug): fix bug when using builtin backoff type fix(python backoff): fix bug when using builtin backoff type Nov 7, 2023
The builtin strategy was not returned from lookup_strategy
@HalfdanJ
Copy link
Contributor Author

HalfdanJ commented Nov 7, 2023

I managed to get my local tests working, discovered another bug in the lookup code that i've fixed. The tests are now passing locally, so 🤞

Copy link
Collaborator

@roggervalf roggervalf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@roggervalf roggervalf merged commit 76959eb into taskforcesh:master Nov 8, 2023
10 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 9, 2023
## [4.13.2](v4.13.1...v4.13.2) (2023-11-09)

### Bug Fixes

* **backoff:** fix builtin backoff type ([#2265](#2265)) [python] ([76959eb](76959eb))
* **job:** set delay value on current job instance when it is retried ([#2266](#2266)) (python) ([76e075f](76e075f))
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.

2 participants