When Temporal Schedules are worth replacing cron jobs
Recurring jobs often grow across host crontabs and Temporal Cron Jobs, with no single place to see which runs were missed, which overlapped and which failed silently. Temporal Schedules address this by running recurring Workflows from the Temporal Service itself, so each run is recorded in workflow history and can be found, paused or inspected from one control point. This page answers when that move is worth the effort, which jobs suit it, and what to confirm before you start.
Jobs that fit well are periodic reconciliations between systems, scheduled reports, and sync jobs that pull from or push to an external system on a fixed cadence. These benefit most when a missed or duplicated run has a business consequence and someone needs an audit trail. Jobs that may not fit include very high-frequency triggers where the scheduling overhead matters more than visibility, jobs that are really single steps with no need for durable state (a Standalone Activity or a simple queue may suit those better), and jobs whose schedule depends on logic that is hard to express as a calendar or interval spec.
Before committing, confirm the documented maturity of Schedules for the Temporal Server version you run, since feature status and behavior can differ between releases. Check the release notes for your target version and the Temporal GitHub releases page, and confirm with your platform team which Schedule features your SDK version supports. Then inventory your existing cron jobs, record their overlap and failure behavior today, and decide which of them need that behavior preserved.
How a schedule starts Workflows on a self-hosted cluster
The path starts with an operator creating a schedule through the client or the Web UI. The request reaches the frontend service, which hands the schedule to the history service, where its state is persisted in the database behind the namespace. When the schedule fires, a Workflow Execution is recorded and a task is placed on a task queue, and a worker polling that queue picks it up. Check that the schedule, the workflows and the workers all share the same namespace and task queue name, because a mismatch means workflows start but never run.
Path from a schedule definition to a worker running the Workflow Execution, inside one namespace.
Which schedule settings to decide before migrating
This table compares the settings a team must choose when moving a cron job to a Temporal Schedule, with the situations each option fits and the problem that follows when a default is left unexamined. Read each row as a question to answer for every job before cutover, and confirm the exact option names and defaults in the Temporal documentation for your server version.
| Setting | When the option fits | What goes wrong if left at a default |
|---|---|---|
| Calendar or interval spec | Calendar specs suit jobs tied to wall-clock times such as a month-end report. Interval specs suit fixed gaps such as polling every 15 minutes from a known start. | A cron expression copied as an interval, or the reverse, shifts run times and can skip or double a business-day job without any error. |
| Time zone | Set it explicitly for any job that must run at local business hours, and for jobs that cross daylight saving transitions. | The schedule runs on the zone the team assumed, not the zone the cron host used, so reports land hours early or late twice a year. |
| Overlap policy | Skip or buffer when runs must not execute concurrently, such as a batch that writes to the same table. Allow overlap only for idempotent, independent runs. | A slow run and the next scheduled run execute at the same time, causing duplicate writes or lock contention that cron never produced. |
| Catch-up or backfill behavior | Choose catch-up when every missed period must still be processed, such as billing cycles. Choose skipping when a late run would be stale or harmful. | After an outage, the schedule either fires a burst of old runs at once or silently drops periods that the business expected to be processed. |
| Pause state | Create schedules paused during cutover so the old cron job and the new schedule do not both run. Use pause for planned maintenance on the job itself. | Old cron and new schedule run side by side, sending duplicate emails or posting duplicate records during the parallel-run window. |
| Workflow type and task queue | Name the workflow type and task queue that match the workers deployed for that job, and keep critical jobs on queues with monitored workers. | The schedule starts runs on a queue with no workers, so runs stall without failing, or a typo in the workflow type fails every run. |
| Workflow ID and idempotency | Plan how each run's workflow ID is generated and how the job body handles a repeated execution on the same business period. | Retries or backfilled runs repeat side effects such as payments or notifications because the job was never written to be safe to repeat. |
| Ownership and monitoring | Record an owner, an expected run frequency and an alert for missed or failed runs for every migrated schedule. | Schedules that were visible in a crontab become invisible, and a stopped job is noticed only when a downstream team complains. |
How cron expressions translate into interval and calendar specs
Cron syntax does not map one to one onto every Temporal schedule spec, so the first job is to treat the old crontab as a list of behaviors to reproduce rather than as text to copy. A calendar spec covers most cron-style recurrence, such as a fixed time on certain weekdays or days of the month, but the mapping is not literal. Day-of-month and day-of-week fields in cron combine in ways that differ between cron implementations, and some combinations (for example, a rule that matches on both fields at once) may need to be written as two separate calendar entries or as an explicit filter in the workflow. Interval specs suit fixed cadences such as every fifteen minutes, but they count from an anchor time, so the phase of the schedule can differ from a cron job that fires on clock boundaries. Confirm the exact field names, ranges, default values and combination rules in the Temporal schedule documentation before you write any spec, and do not assume that a cron expression you have read for years means what you think it means.
Daylight saving transitions and time zones are where recurring jobs most often shift without anyone noticing. Cron evaluates against the server's local clock, while a schedule has an explicit time zone setting, so a job that ran at 02:30 local time may not exist on the night clocks change, or may run twice. Decide which time zone each schedule should use, record that choice, and check how the schedule behaves on the dates the clocks change in each zone you operate in. Confirm in the docs how the schedule handles skipped and repeated local times, and whether the workflow should be written to tolerate them. Before cutover, build a test list of the next 30 to 50 run times from the existing crontab, computed by a script or the crontab owner, and compare it with the run times the new schedule reports for the same window, including a window that spans a clock change. Any difference should be explained and accepted in writing, or the spec should be changed until the two lists agree.
Choosing an overlap policy by job type
Reconciliation jobs compare two systems and correct drift, so running them twice on overlapping data is usually harmless if each run reads current state before writing. The main trade-off is between skipping a tick that arrives during a slow run, which keeps load bounded but can leave the latest changes waiting for the next cycle, and queuing or allowing concurrency, which catches up faster but doubles the pressure on source and target systems.
- Skip keeps load bounded: a slow run causes the next tick to be dropped, so the system never has two reconciliations writing at once.
- Queuing delays freshness: buffered runs execute back to back, which can drift far behind real time if each run is long.
- Concurrency needs locking: overlapping runs must not write the same records, so each run should partition its work by key or take a lease.
- Writes must be repeatable: upserts keyed on a stable identifier let a re-run converge rather than duplicate.
- Activities must be retry-safe: each external call should carry an idempotency key or check current state before acting.
Confirm the exact overlap option names and their behavior against the current Temporal Schedules documentation before you configure them in your environment.
Some jobs send money, invoices, statements or regulatory filings, and a second execution is a real business error rather than a wasted run. For these, the overlap decision matters less than making the Workflow itself refuse duplicate effects. The trade-off is that the most conservative overlap behavior can still leave a gap if the schedule is paused, a worker is replaced, or an operator triggers a manual run.
- Deduplicate at the effect: record a durable marker for each reporting period before publishing, and check it at the start of every run.
- Use deterministic identifiers: derive the Workflow ID or report key from the scheduled period so duplicates are visible in the Temporal execution history.
- Separate trigger from action: a manual backfill should go through the same guarded path as the schedule, not a parallel script.
- Review manual starts: confirm who can start or trigger runs for the schedule and how those actions are audited.
- Test the overlap path: simulate a slow run and a duplicate tick in a non-production namespace before go-live.
Check with your finance or compliance owners which period markers and approvals they require, because the Workflow cannot infer them.
Some jobs must produce output for every scheduled period, such as hourly metering, expiry sweeps or time-bound notifications, and dropping a tick creates a gap that downstream systems cannot recover. The trade-off here favors allowing the run to proceed, but that means the Workflow must tolerate overlap, and a backlog can grow if each run takes longer than its interval.
- Accept late runs deliberately: decide the maximum acceptable lateness for each period and treat anything beyond it as an alert.
- Key work by period: each run should process only the window it was scheduled for, so late and on-time runs do not collide.
- Watch the backlog: monitor how many runs are waiting or running per schedule and set alerts before the backlog threatens the next period.
- Make windows idempotent: re-processing a completed window should produce the same result or be detected and skipped.
- Plan capacity for catch-up: a recovered backlog runs at full speed, so size workers and downstream rate limits for that burst.
Ask the business owner how much delay each job tolerates, since that answer sets the alert thresholds and the capacity plan.
When a single run can last longer than the interval between ticks, the schedule's overlap behavior determines whether runs stack up, get dropped, or execute concurrently. The trade-off is between letting work accumulate, which risks unbounded queues, and dropping ticks, which can hide a job that is consistently too slow. Often the real fix is to shorten the unit of work rather than tune the overlap setting.
- Split into smaller runs: process bounded batches per run so each execution finishes well within the interval.
- Use continue-as-new for long loops: if a run must iterate over many items, carry progress forward instead of holding one long history.
- Set run timeouts: define a maximum run duration so a stuck run cannot block the schedule indefinitely.
- Track skipped ticks: count dropped or delayed triggers so a job that silently falls behind is visible.
- Coordinate concurrent access: if concurrency is allowed, use per-resource locks or keys so two runs never modify the same data.
Measure real run durations in a staging namespace under production-like data volume before you choose a policy, because the duration distribution, not the average, decides whether overlap happens.
Migrating a cron job to a Temporal Schedule
This sequence moves one recurring job from crontab or Temporal Cron Jobs onto a Temporal Schedule, with a check at each step so the team can confirm the new path matches the old one before the old entry is removed.
Inventory the job and its failure history
The job owner lists what the cron entry runs, its schedule, the host and user it runs as, the environment variables and credentials it reads, the files and systems it writes to, and what downstream teams rely on its output. Pull the last several months of logs and note every failed or partial run, because those cases decide the retry, timeout and overlap settings the new schedule needs. Done when the team has a written record of inputs, outputs, side effects and known failure modes that a reviewer has signed off on.
Move the job body into an idempotent Workflow
A developer moves the script logic into a Workflow and its side-effecting steps into Activities, with retry policies set per Activity and each external write keyed so that a retried or re-run execution does not duplicate records or messages. Hard-coded hosts, secrets and local file paths are replaced with configuration the worker reads at startup. Done when unit tests cover the Workflow with the Temporal test environment and a code review confirms every write can safely run twice.
Create the schedule in a non-production namespace
The team registers a Workflow task queue on a worker in a non-production namespace, then creates the Temporal Schedule with the interval or calendar spec that matches the cron expression, plus the chosen overlap policy and catchup behavior. Before anything else, the team confirms the Temporal server version in use is one the deployment supports, and upgrades it first if the release notes or the upgrade docs require it, moving one minor version at a time. Done when the schedule appears in the schedule list and the first triggered run reaches the expected task queue.
Confirm the worker picks up the task queue
The platform engineer checks that the worker is polling the exact task queue name the schedule starts, in the same namespace, and that its build and SDK version match the code under review. A manual trigger is run against a test target so the team sees the Workflow start, complete and log the same fields as the cron version. Done when the worker logs and the Web UI show a completed execution with the expected inputs and no unexpected retries.
Run old and new side by side
The crontab entry stays in place but the Temporal Schedule runs against a non-production target, or the old job is paused while the schedule runs for one or more cycles with outputs captured from both paths. Both runs are compared by their timestamps, so the team can confirm each scheduled time fired once and that no two paths wrote to the same target in the same window. Done when the timestamps line up with the cron schedule and no duplicate writes appear in the target system.
Compare outputs and failure handling
The team compares the outputs of the cron job and the Workflow for the same inputs, including row counts, file hashes, message counts and any generated reports. They also force one controlled failure, such as an unavailable dependency, and check that the retry policy and the schedule's overlap and pause behavior behave as designed. Done when a named reviewer accepts the differences as expected and the failure test produces the recovery the design describes.
Cut over and retire the crontab entry
The owner enables the schedule in production, pauses or removes the crontab entry, and records the change, the schedule ID and the owning team in the runbook. The old entry is kept commented out for a period agreed with the owner so it can be restored if needed. Done when the schedule is listed as active, the next run fires on time, and the crontab line is gone or disabled on every host that ran it.
Backfilling missed runs after an outage without duplicating work
Decide how missed runs are handled before cutover, because the default catch-up behavior is not a plan. When a worker pool or the Temporal cluster is unavailable, recurring runs that came due during the outage are not dropped by design, but how many of them execute once service returns depends on the schedule's catch-up settings and the window they define. Confirm in the Temporal Schedules documentation how the catch-up window is configured, what its default is, and which missed runs fall outside it. The failure to prevent is a burst of queued runs hitting an invoicing API, an email provider or a warehouse at the same moment, which can overload downstream systems and trigger their rate limits.
Even with a sensible window, a Workflow started for a missed period can run alongside the current one, so each Workflow must be safe to repeat. Pass the period the run is meant to cover as an input, not the wall-clock time at which the run happens to start. Before any side effect, check a durable record keyed by that period, such as a row in the target database or a marker written by an earlier successful run. Illustrative example: a nightly export keyed by business date writes the same rows again when the run for 2 March is replayed, so the downstream table holds one copy of that day. Activities that write externally should carry the same key so that retries and replays are idempotent.
Each schedule needs a replay or skip decision, and the business or data owner should make it with the platform team, then record it in the runbook. Reconciliations and billing exports usually need every period processed, so a missed run is replayed in order. A cache refresh or a status poll usually does not, because the next run supersedes the missed one. Confirm in the docs how a bounded manual backfill over a date range is started, who may approve it, and how it interacts with a running schedule. Write those answers into the operations runbook so an on-call engineer does not improvise during an incident.
Securing schedules and the Workflows they start
A schedule is a standing instruction that starts Workflows without a human in the loop, so whoever can change it can change what runs, when, and with which data. The controls below decide who may create, pause or delete schedules, whether the API is reachable at all, and how payloads and traffic are protected. Check each one in your environment before the first production schedule is created.
Restrict schedule roles through authorization
Schedule creation, pause, update and delete are API actions, so access to them is decided by the Authorizer and the ClaimMapper that maps identity claims to namespace roles. Define a small group that may change schedules in production, separate from the group that may only read them, and give automation service identities the narrowest role that works. Verify that a user without write rights cannot pause a billing or payroll schedule using a direct API call, not only through the Web UI.
Temporal security docsReplace the default noopAuthorizer
If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend port could create a schedule that starts a Workflow, or delete one that enforces a control. Verify that the running server configuration names a real Authorizer and ClaimMapper, and test with an unauthenticated client that requests are rejected before schedules are migrated.
Temporal security docsKeep frontend and internode traffic internal
Temporal services are documented to run on hosts that are not reachable from the public internet, with network access limited to trusted internal networks. Schedules fire on the server side, so a reachable frontend lets outside callers read and change timing and arguments. Confirm that the frontend and internode ports sit behind firewall rules scoped to the worker and client subnets, and that mTLS is enabled for both traffic types with separate settings.
Self-hosted deployment docsEncrypt payloads that schedules pass
Each scheduled run passes its input to a Workflow, and that input is stored in event history. Customer identifiers, export paths or credentials placed there are readable by anyone with history access. Self-hosted Temporal supports payload encryption through custom codecs and a codec server. Verify that the codec is applied on the client that creates the schedule and on the workers, that the codec server is authenticated, and that the key used for schedule inputs is covered by the same rotation process as other secrets.
Temporal security docsKeep secrets out of schedule arguments
Schedule definitions and their arguments are visible to every identity that can read the schedule, so a database password or API token placed there becomes readable to a much wider group than intended. Pass only identifiers, and let activities fetch credentials from your secrets manager at run time under the worker's own identity. Verify by describing a sample schedule in the Web UI and CLI as a read-only user and confirming that no credential appears in the output.
Audit every schedule change
A schedule that was paused, retargeted or deleted can explain a missed invoice run or a silent gap in reporting, and you need to know who made the change and when. Record schedule create, update, pause, unpause and delete actions from your Temporal audit trail and forward them to your central log store. Verify that a test pause produces an attributable record, that the log retention period meets your policy, and that someone is alerted when a production schedule stops firing.
What buyers ask before moving cron jobs to Temporal Schedules
What drives the cost and effort of moving cron jobs to Temporal Schedules?
The main drivers are the number and complexity of the jobs, how many of them depend on each other or on shared data, and how much of the current behavior must be matched exactly. A job that runs a single script with no retries is far cheaper to move than one that writes to several systems, must avoid duplicate runs and needs an audit trail. Costs are mostly one-time (inventory, design, build, testing and cutover), with recurring costs for hosting workers, the Temporal service and on-call. Ask any partner for a written scope that lists each job, its owner, its target schedule type, its overlap and catch-up behavior, and the environments in which it will be tested.
Can our own team move cron jobs to Temporal Schedules without outside help?
Often yes, if the team already runs Temporal workers in production and has someone who understands workflow determinism, retries and idempotent activities. The harder part is usually not the schedule definition but deciding overlap policy, catch-up behavior and how each job's side effects behave when it runs twice. Teams new to Temporal tend to underestimate the operational work: worker hosting, namespace access, monitoring and runbooks. Outside help is most useful for the job inventory, a pilot on a low-risk job and a cutover plan. Your own team can use a written scope to judge whether the skills and time exist internally.
How long does a migration take, and what sets the timeline?
No duration is stated here because it depends on the job inventory and the environment. The timeline is set by how many jobs are in scope, how many have side effects that need idempotency work, how many systems the jobs touch, how strict the change approval process is and how many environments must be tested before production. Scheduling constraints such as month-end runs also add time. Ask for a timeline in the written scope that is tied to named phases, such as inventory, pilot, batch migration and decommissioning of the old cron entries, with the client's approval points marked.
What does the client need to provide for a schedule migration?
The client usually provides a complete job inventory, including crontab files, scheduler configuration and any jobs that run on people's machines. They also need a Temporal namespace the migration team can access, worker hosting in an environment they control, credentials for the systems the jobs touch, and a named owner for each job. Someone must be available for on-call response during the cutover window and after it. Confirm in the written scope who grants namespace access, who approves production changes and who receives alerts when a scheduled run fails.
Do Temporal Schedules replace every Temporal Cron Job?
Schedules are the current way to run recurring work in Temporal, but whether they replace every existing cron-style workflow depends on how the workflow is written and used. Schedules start workflows on a calendar or interval spec, and they support pausing, backfilling missed runs and overlap policies. Workflows that rely on the older cron schedule behavior, or that need to be started by a process that is not a schedule, may need to be restructured rather than copied across. Ask for a written decision per job in the scope, recording whether it moves to a Schedule, stays as a Cron Job for a stated reason, or is retired.
What are the risks of moving recurring jobs without a plan for overlap and missed runs?
The two common failures are duplicate processing when a run overlaps the previous one and unexpected bursts of work after an outage when missed runs are replayed. Both can cause double charges, duplicate messages or data written twice if the job's activities are not idempotent. Before cutover, each job should have a documented overlap policy, a decision on whether to backfill missed runs and a check that its external calls can safely repeat. Request these decisions in writing, with the test evidence for them, before the old cron entry is disabled.
What should the operations side look like after the migration?
After cutover, someone must own schedule health: failed or stuck runs, paused schedules, worker capacity and the alerts that report them. Teams should keep a runbook for pausing, resuming and manually triggering a schedule, and they should review schedules when job owners change. Recurring costs include hosting for workers and the Temporal service, plus the people who respond to alerts. Ask the partner which operations tasks they hand over and which need a retainer, and make sure the written scope names the handover acceptance criteria.
Limits to confirm before running schedules at scale
Schedules replace cron jobs only if the cluster version, capacity, visibility store and failover behavior all hold for your load. Each card below names one limit to confirm in your own environment. Check every limit in the current Temporal docs before you commit to a design, because release details change between minor and patch lines.
Minimum server version for features used
Confirm the lowest Temporal Server version that supports each schedule feature your jobs need, such as the overlap, pause or backfill options you plan to use. Check the release notes for the current release, v1.32.1, and for the patch lines v1.31.4 and v1.30.8, since a feature may appear only in later minors. Record the version in your runbook, because an upgrade may be required before a feature is available.
Temporal releasesSchedule count and run frequency
Estimate how many schedules will exist and how often each one fires, including bursts at the top of the hour or midnight when many cron jobs align. Ask Temporal and your platform team how the cluster's history shards, service counts and rate limits handle that rate. Test with a load that matches your peak run rate, not your average, and watch latency before you move the whole cron estate.
Visibility store for schedule runs
Finding past schedule runs, failed starts and skipped overlaps depends on the advanced visibility store. Confirm which visibility databases your server version supports, and note that Cassandra visibility was removed in 1.24. Temporal recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions, so decide early how operators will search runs by schedule ID.
Visibility docsSchedule behavior across namespace failover
Confirm how schedules, their next run times and their pause state behave when a namespace fails over to another cluster. Check whether runs may fire twice or be missed during handover, and whether your failover design depends on an experimental feature. Test the sequence with a planned handover before you rely on schedules for jobs that move money, send notices or sync records.
Documented maturity for production
Check the documented maturity status of each schedule feature, including any beta, experimental or pre-release label, before you base production jobs on it. Ask whether the status applies to the SDK you use as well as the server. Keep a fallback cron job for any job whose feature status is not stable in the version you run.
Security and access on the cluster
Confirm that the frontend API uses an Authorizer, since the default noopAuthorizer allows every API request without authentication. Schedules can start workflows that touch production data, so limit who may create, pause or delete schedules. Check that mTLS and your ClaimMapper map each team to the namespace roles it needs.
Security docsHow DeployOpen scopes and delivers Temporal Schedules work
DeployOpen approaches Temporal schedules to replace cron jobs as a planned migration, not a line-by-line port of crontab entries. We start by inventorying each recurring job, then design the schedules, overlap and catch-up behavior, and the self-hosted service they run on, all inside infrastructure you control.
How we scope
- Inventory every cron entry and Temporal Cron Job, recording frequency, runtime, owner and whether a missed run must be replayed.
- Agree in writing which schedules move, the spec type for each, and the overlap, pause and backfill rules for each job.
- Confirm the target self-hosted Temporal version, persistence and visibility stores, and the namespaces the schedules will live in.
How we build
- Create Temporal Schedules in a non-production namespace, wired to workflows that take idempotent inputs and report their own outcomes.
- Test overlap policies, pausing, and catch-up after a simulated outage, then run old cron and new schedules in parallel where the scope requires it.
- Configure authentication, namespace roles and audit visibility so schedule changes are restricted to the owning team.
How we hand over
- Deliver a schedule register listing each schedule, its spec, policies, owner and the workflow it starts.
- Document the cutover sequence, rollback steps and the runbook for pausing, resuming and inspecting stuck schedules.
- Walk your operations team through the build and record the test results used to approve each cutover.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, server upgrades and continuous testing for schedules are available as a retainer.
- Confirm with DeployOpen during scoping which support terms, response expectations and upgrade coverage apply to your schedules.

