Current user is not set when triggering repetitions of recurring actions
They fail with undefined method id for nil, this is caused by two factors.
1) We rely on User.current always being set in here1
2) By moving the repetition triggering to a hook, it now runs outside of scope of the KeepCurrentUser middleware and therefore the current user is unset.
For people googling for the error, the issue can be identified by the following line in logs:
Failed to run hook 'trigger_repeat' for action 'Actions::RemoteExecution::RunHostsJob'