fix display of workers

Accessing worker.state now raises a DeprecationWarning, which in turn causes worker.json generation to fail.  Use the new worker.get_state() instead.