> 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/documentation/start-here/ai-agents/transfer-media-encode-and-publish/schedule-publication-while-preparing-media.md).

# Schedule publication while preparing media

Upload and encode local media while preserving a reviewed future publication time.

Allow enough time for transfer and encoding before the intended release.

## Before you start

* Choose the local release time and time zone.
* Convert it to ISO 8601 with an explicit offset.
* Check upload, encoding, storage, and publish allowances.
* Keep a safe lead time for the file size and media processing.

## Schedule the publication

```sh
pdg --write publish episode.mp3 --podcast 42 --title "New episode" \
  --at "2026-08-20T09:00:00+02:00"
```

1. Review the timestamp and its normalized instant.
2. Start the workflow before the planned release time.
3. Confirm the preview only when the episode and schedule are correct.
4. Monitor upload, encoding, and the durable operation.
5. Confirm that the final episode has the intended future `published_at` value.

## Expected result

Media processing completes and the episode remains scheduled for the reviewed instant.

## If processing approaches the release time

Do not assume that an unfinished production will publish correctly. Inspect the operation and production. Reschedule through a fresh preview when more lead time is needed.

## Next step

[Recover an interrupted publication](/documentation/start-here/ai-agents/transfer-media-encode-and-publish/recover-an-interrupted-publication.md).


---

# 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/documentation/start-here/ai-agents/transfer-media-encode-and-publish/schedule-publication-while-preparing-media.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.
