theforeman / foreman_rh_cloud

a plugin to Foreman that generates and uploads reports to the Red Hat cloud
GNU General Public License v3.0
6 stars 32 forks source link

Fix host deletion task call #843

Closed ShimShtein closed 1 year ago

ShimShtein commented 1 year ago

@chris1984 @jameerpathan111 I think this should fix our deletion task.

Also: the deletion is done only with the scheduled task, so if you want to test it, you have to run it manually from the console:

[2] pry(main)> ENV['SATELLITE_RH_CLOUD_REQUESTS_DELAY'] = '0'
=> "0"
[3] pry(main)> ForemanTasks.sync_task(InventorySync::Async::InventoryScheduledSync)

This will invoke the scheduled update task immediately.