Repository navigation
Conversation
| self.app.conf.broker_url = prepatch_broker_url | ||
| monkeypatch.setenv('CELERY_BROKER_URL', | ||
| 'memory://thisshouldntbethebroker') | ||
| assert self.app.conf.broker_url == prepatch_broker_url |
There was a problem hiding this comment.
The application configuration has already been resolved at this stage, so I think this test case does not actually prove the issue. Configuration cannot be changed dynamically.
There was a problem hiding this comment.
I got that feeling when I wrote this, however calling self.app.conf.broker_url after setting it to prepatch_broker_url, but before setting CELERY_BROKER_URL in the environment, it does return the prepatch_broker_url string
I've added a second test demonstrating this
auvipy
left a comment
There was a problem hiding this comment.
whats the status of the test? seems 2nd testcase was added @georgepsarakis
|
@Checkroth @auvipy I think the configuration works as expected. Please consider the following: I hope the priority is clearer now. However your test seems to raise another question regarding the behavior of |
|
@georgepsarakis Thank you for clarifying. My initial issue was that, when explicitly setting your Celery config, the broker url would read from your environment variables rather than your explicit setting if It appears that this is by design, so this pull request adds no value to Celery. I will write my thoughts on the issue over at #4284 , because I still feel that there is something to be done to avoid this confusion in the future. |
Description
This PR is to assist in showing the issue described here: #4284
All this PR does is add a failing test that should be passing, if the issue above is resolved.
This PR does not solve the issue mentioned. I leave that up to the discretion of a more knowledgeable party, if they decide that it is indeed an issue at all. I do not expect this PR to be merged unless the issue is resolved and you want this test to remain in the repository.