Problem:
Scheduled Ansible jobs stuck and unable to cancel (forced or not)
Expected outcome:
Tasks will eventually timeout and stop running, marked as failed in the result column.
Foreman and Proxy versions:
3.9.1-1.el8
Foreman and Proxy plugin versions:
ansible-collection-theforeman-foreman-4.0.0-2.el8.noarch
candlepin-4.3.12-1.el8.noarch
candlepin-selinux-4.3.12-1.el8.noarch
foreman-3.9.1-1.el8.noarch
foreman-cli-3.9.1-1.el8.noarch
foreman-debug-3.9.1-1.el8.noarch
foreman-dynflow-sidekiq-3.9.1-1.el8.noarch
foreman-installer-3.9.1-1.el8.noarch
foreman-installer-katello-3.9.1-1.el8.noarch
foreman-libvirt-3.9.1-1.el8.noarch
foreman-obsolete-packages-1.6-1.el8.noarch
foreman-postgresql-3.9.1-1.el8.noarch
foreman-proxy-3.9.1-1.el8.noarch
foreman-redis-3.9.1-1.el8.noarch
foreman-release-3.9.1-1.el8.noarch
foreman-selinux-3.9.1-1.el8.noarch
foreman-service-3.9.1-1.el8.noarch
katello-4.11.0-1.el8.noarch
katello-certs-tools-2.9.0-2.el8.noarch
katello-client-bootstrap-1.7.9-2.el8.noarch
katello-common-4.11.0-1.el8.noarch
katello-debug-4.11.0-1.el8.noarch
katello-repos-4.11.0-1.el8.noarch
katello-selinux-5.0.2-1.el8.noarch
pulpcore-obsolete-packages-1.0-8.el8.noarch
pulpcore-selinux-2.0.1-1.el8.x86_64
python3.11-pulp-ansible-0.20.2-3.el8.noarch
python3.11-pulp-certguard-1.7.1-2.el8.noarch
python3.11-pulp-cli-0.21.2-5.el8.noarch
python3.11-pulp-container-2.16.4-1.el8.noarch
python3.11-pulp-deb-3.0.1-1.el8.noarch
python3.11-pulp-file-1.15.1-2.el8.noarch
python3.11-pulp-glue-0.21.2-3.el8.noarch
python3.11-pulp-python-3.10.0-3.el8.noarch
python3.11-pulp-rpm-3.23.0-2.el8.noarch
python3.11-pulpcore-3.39.8-1.el8.noarch
rubygem-foreman-tasks-9.0.1-1.fm3_9.el8.noarch
rubygem-foreman_ansible-13.0.3-1.fm3_9.el8.noarch
rubygem-foreman_discovery-23.0.0-1.fm3_10.el8.noarch
rubygem-foreman_maintain-1.4.3-1.el8.noarch
rubygem-foreman_remote_execution-12.0.5-1.fm3_9.el8.noarch
rubygem-foreman_statistics-2.1.0-1.fm3_9.el8.noarch
rubygem-foreman_webhooks-3.2.2-1.fm3_9.el8.noarch
rubygem-hammer_cli-3.9.0-1.el8.noarch
rubygem-hammer_cli_foreman-3.9.0-1.el8.noarch
rubygem-hammer_cli_foreman_discovery-1.2.0-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.3.0-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.20-1.fm3_9.el8.noarch
rubygem-hammer_cli_foreman_webhooks-0.1.0-1.fm3_9.el8.noarch
rubygem-hammer_cli_katello-1.11.1-1.el8.noarch
rubygem-katello-4.11.0-1.el8.noarch
rubygem-pulp_ansible_client-0.20.2-1.el8.noarch
rubygem-pulp_certguard_client-1.6.5-1.el8.noarch
rubygem-pulp_container_client-2.16.2-1.el8.noarch
rubygem-pulp_deb_client-3.0.0-1.el8.noarch
rubygem-pulp_file_client-1.15.1-1.el8.noarch
rubygem-pulp_ostree_client-2.1.3-1.el8.noarch
rubygem-pulp_python_client-3.10.0-1.el8.noarch
rubygem-pulp_rpm_client-3.23.0-1.el8.noarch
rubygem-pulpcore_client-3.39.2-1.el8.noarch
rubygem-smart_proxy_pulp-3.2.0-3.fm3_9.el8.noarch
Distribution and version:
CentOS Stream 8. EOL I know - planning to upgrade soon so cleaning up stuck tasks.
Other relevant data:
I have searched and found the cleanup job in:
That did not work either.
Any tips to troubleshoot this further? I’m avoiding using the rake console or updating the DB directly if possible.