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 
Foreman::UUID_REGEXP 
/usr/share/foreman/lib/foreman.rb:8: warning: previous definition of 
UUID_REGEXP was here 
after_commit 
after_create 
after_destroy 
after_find 
after_initialize 
after_rollback 
after_save 
after_touch 
after_update 
after_validate 
after_validation 
before_create 
before_destroy 
before_save 
before_update 
before_validate 
before_validation

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?

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to