> 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).

# 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, and retry guidance.
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.
7. Check `doctor` for plan, encoding, or publication blockers.

## Recover safely

Continue polling while the operation is `queued`, `running`, or `waiting`. Preview a resume only when the durable operation is `failed_retryable`. Stop after the same failure happens again. Take the episode offline instead of deleting it when you need a reversible publication change.

## 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
