# `mix ash_onetime.roll_partitions`
[🔗](https://github.com/baselabs/ash_onetime/blob/v1.9.2/lib/mix/tasks/ash_onetime.roll_partitions.ex#L1)

Creates the next batch of monthly `ash_onetime_response_payloads` range partitions.

    mix ash_onetime.roll_partitions --repo MyApp.Repo
    mix ash_onetime.roll_partitions --repo MyApp.Repo --prefix tenant_1 --months 6

Forward partition creation keeps payloads past the install window in monthly partitions the
prune can drop whole: without it, payloads whose `response_partition` falls outside the
generated window route to the `_default` partition, which claim cleanup empties row by row
but which is never reclaimed as a table. Idempotent and
concurrency-safe (advisory-locked). Schedule it via `AshOnetime.Oban.PartitionWorker` or a
cron cadence; the operator picks `--months` to stay ahead of their retention horizon.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
