Command line works, task worker does not