Use actor-based http client in worker
Fix compilation
Simpler retry logic