Created
March 3, 2023 11:17
-
-
Save sayan3296/ec9e19c19b8a7aa3907036533e477af7 to your computer and use it in GitHub Desktop.
Run SetContent task for all the ContentView Environments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat << EOF | foreman-rake console | |
Katello::ContentViewEnvironment.all.each do |cve| | |
ForemanTasks.async_task( | |
Actions::Candlepin::Environment::SetContent, | |
cve.content_view, | |
cve.owner, | |
cve, | |
) | |
end | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If any of the generated task fails with some
transactional block
orentity version
error, we may need to follow https://access.redhat.com/solutions/6958601 and then resume the taskOnce done, tomcat service should be restarted as well.