set worker state