Skip to content

fix(arq): Fix attribute error on settings, support worker args#2260

Merged
sentrivana merged 1 commit intogetsentry:masterfrom
rossmacarthur:mac/arq-attribute-error
Aug 16, 2023
Merged

fix(arq): Fix attribute error on settings, support worker args#2260
sentrivana merged 1 commit intogetsentry:masterfrom
rossmacarthur:mac/arq-attribute-error

Conversation

@rossmacarthur
Copy link
Contributor

@rossmacarthur rossmacarthur commented Jul 18, 2023

The arq settings class doesn't necessarily have to have both functions and cron_jobs attributes. Additionally it is possible to configure functions and cron jobs by passing them as a keyword argument to create_worker, this is now handled.

Fixes #2305
Fixes #2306

@rossmacarthur rossmacarthur changed the title Fix arq attribute error on settings, support worker args fix(arq): Fix attribute error on settings, support worker args Aug 13, 2023
@sentrivana
Copy link
Contributor

@rossmacarthur Thanks for the fixes! Could you please run the changes through black and add testcases in https://github.com/getsentry/sentry-python/blob/master/tests/integrations/arq/test_arq.py for this?

@rossmacarthur
Copy link
Contributor Author

@sentrivana done :)

@sentrivana sentrivana merged commit b954e97 into getsentry:master Aug 16, 2023
@sentrivana
Copy link
Contributor

Thank you!

@rossmacarthur rossmacarthur deleted the mac/arq-attribute-error branch August 16, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arq integration ignores functions and cron jobs passed as keyword arguments AttributeError in arq integration

2 participants