According to the forman hooks docs, I should be able to hook into the
after_destroy event for the pulp_task_status:
[root@slik01 ~]# foreman-rake hooks:events[katello/pulp_task_status]
/usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of
UUID_REGEXP was here
I would think this event *should* be triggered once the task sync task is
complete, but when I run a sync, the event never fires. I know that my hook
script works and is registering to the correct event from the debug output.
My hook script works if I copy it to a different event. It seems this event
doesn't work for pulp_sync_status either.
What is the expected behavior for these events? When should they fire? How
can I run a hook script when a sync task completes?