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
Refresh Project Nodes job step : no refresh if cache timout is not exceeded #8956
Comments
Hi @grosbedos Could you try this approach? (put a sleep time before the Refresh Project Nodes Step). |
Hi @grosbedos, Weird, I can't reproduce the issue on 5.1.0 (tested on "normal" XML/YAML file and Ansible model sources). Tested using this job definition (pointing to all nodes): - defaultTab: nodes
description: ''
executionEnabled: true
id: c2096c35-5417-4f35-b1d5-3afe2e0b432b
loglevel: INFO
name: HelloWorld
nodeFilterEditable: false
nodefilters:
dispatch:
excludePrecedence: true
keepgoing: false
rankOrder: ascending
successOnEmptyNodeFilter: false
threadcount: '1'
filter: .*
nodesSelectedByDefault: true
plugins:
ExecutionLifecycle: {}
scheduleEnabled: true
sequence:
commands:
- nodeStep: false
type: source-refresh-plugin
- exec: whoami
keepgoing: false
strategy: node-first
uuid: c2096c35-5417-4f35-b1d5-3afe2e0b432b I've configured the model source to update every 300 seconds in the following way:
Changing the Ansible inventory and then, executing the job multiple times I'm seeing the change immediately. Probably I'm missing something. Could you try with fewer nodes? (just to identify the root cause) Probably is related to the huge number of nodes. |
Hello,
At the moment I only have 100 linux nodes in an ansible inventory.
The default cache time is 30 seconds.
When I browse the jobs, nodes, or configuration nodes page, the cache is regenerated each time and it takes several minutes.
In fact, rundeck is always interrogating my nodes.
I have try some things :
To remedy this, I've added a "Refresh Project Nodes" job step. Unfortunately, this job step only works if the cache time is exceeded...
Is this normal behavior?
My Rundeck detail
Expected behavior
The "Refresh Project Nodes" job step should refresh the cache even if the cache timeout is not expired.
Desktop (please complete the following information):
Best regards
The text was updated successfully, but these errors were encountered: