-
Notifications
You must be signed in to change notification settings - Fork 99
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
Fixes #32729 - reload setting prior run #636
Conversation
Looks good to me. @ShimShtein could you take this for a spin? |
Tried it, but it looks like the settings are not reloaded. |
Are you sure the code changes propagated to all the processes? It seems to work just fine for me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it states it's 2.4+ compatible. Would this also work on Foreman 2.4 or should the minimum version be raised?
foreman-tasks/lib/foreman_tasks/engine.rb
Line 36 in 86c7e83
requires_foreman '>= 2.4.0' |
@ekohl @ezr-ondrej, I have created another PR, since I couldn't change this one. I have modified the original PR so it would also work for ActiveJobs and modified the minimum requirement, since |
883d9e3
to
00aae0c
Compare
b20ca1f
to
d6c7ede
Compare
f905b40
to
8576481
Compare
Test failures on older rubies seem to be related to kwarg handling changes |
8576481
to
c0306e6
Compare
I believe kwarks are not needed, so I droped them. We should not temper with the action arguments IMHO and we do not have kwarks. |
In Foreman we've switched to in-memory setting cache, that needs to be reloaded on demand, Rails is doing that on every request, for dynflow actions we need to do it on every phase. It does that only if the Foreman version is 2.5 or higher, as for older versions this would fail.
c0306e6
to
43165b0
Compare
@ezr-ondrej Forgot to push? |
To include it also in ActiveJob
43165b0
to
f681716
Compare
Now done... I was moving it from commit to commit and didn't do it properly 🤦 |
Thank you everyone! |
In Foreman we've switched to in-memory setting cache, that needs to be
reloaded on demand, Rails is doing that on every request, for dynflow
actions we need to do it on every phase.