Add STATE_FAILED to the imports for publish_progress.py.