> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/help-center/ai-agents/encoding-or-publication-is-stuck.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Encoding or publication is stuck

Check media production and durable operation state before retrying publication.

Check both the media production and the durable publishing operation. They describe different parts of the workflow.

## Check the current state

1. Call `get_production` with the production ID.
2. Call `get_operation` with the publishing operation ID, if one was returned.
3. Read the current state, stage, progress, error, `retryable`, `waiting`, and `recovery`.
4. Confirm that the source upload completed.
5. Confirm that the episode still belongs to the connected podcast and account.
6. For a scheduled episode, confirm that `published_at` is an ISO 8601 date and time in the future. `doctor` returns the time zone of the person as `time_zone`. A time without a zone is in that time zone.
7. Check `doctor` for plan, encoding, or publication blockers.

## Recover safely

* While the operation is `queued` or `running`, wait and read it again.
* While it is `waiting`, the `waiting` object tells what the publication waits for. While `continues_automatically` is `true`, the publication continues without help. You can leave.
* When the operation or its `waiting` object has a `recovery` object, do the step that its `action` names. When the action is `resume_operation`, resume one time only.
* Ask for a new upload only when the action is `replace_recording`. Do not propose another file format for any other action.
* Stop after the same failure happens again, and contact Podigee Support.

Take the episode offline instead of deleting it when you need a reversible publication change. The complete rule is on the page [Follow and recover long-running operations](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/follow-and-recover-long-running-operations).

## Expected result

Encoding completes and the operation reaches its intended terminal stage. For publication, confirm the episode state in Podigee. Do not assume that every external directory has ingested it at that moment.

## If the workflow remains stuck

Send Podigee Support the episode, production, and operation IDs, the intended publication mode, the approximate start time, and the sanitized error. Do not start a duplicate publication while the existing operation may still run.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/help-center/ai-agents/encoding-or-publication-is-stuck.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
