Hi,
I was studying the dynflow documentation, but there are some pieces or
examples missing in order for me to understand how to do this and I cannot
find examples in the Katello sources either. Therefore, I would appreciate
some help.
I have written one main task that is a composition of smaller tasks:
class MainAction < Actions::EntryAction
def plan(args)
sequence do
plan_action ::Actions::MyPlugin::FirstTask, args
plan_action ::Actions:: MyPlugin::SecondTask, args
end
plan_self
end
...
I have wrapped the smaller tasks into runner objects derived from
ForemanTasksCore::Runner::Base and use publish_data() to emit output for
the console. In the dynflow console, I can observe that the tasks are
publishing output when browsing into the smaller tasks. But what is unclear
for me is how I can fetch this output and show it in the console of the
main action such that I can observe the progress in the foreman-task task
page. I believe it needs to work somehow by including
::Actions::Helpers::WithContinuousOutput? I can see something similar
working with delegated actions in the foreman_ansible plugin. However, I do
not need delegated actions as everything happens locally anyway.
Thanks for reading. Looking forward to an answer.
Regards,
--Gerrit
--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.