actions: tie async hook runs to the service context (#10454)