def METHOD_NAME(
    self, mock_update_job, mock_run_command
):
    app._got_first_request = False
    async_query_manager.init_app(app)
    user = security_manager.find_user("gamma")
    form_data = {}
    job_metadata = {
        "channel_id": str(uuid4()),
        "job_id": str(uuid4()),
        "user_id": user.id,
        "status": "pending",
        "errors": [],
    }
    errors = ["A timeout occurred while loading explore json, error"]
    with pytest.raises(SoftTimeLimitExceeded):
        with mock.patch.object(
            async_queries,
            "set_form_data",
        ) as set_form_data:
            set_form_data.side_effect = SoftTimeLimitExceeded()
            load_explore_json_into_cache(job_metadata, form_data)
        set_form_data.assert_called_once_with(form_data, "error", errors=errors)