Apify Production Checklist
Overview
Complete checklist for deploying Actors to the Apify platform and integrating them into production applications. Covers Actor configuration, scheduling, monitoring, alerting, and rollback. Work top to bottom: clear the pre-deployment gates, then run the six deploy steps, then wire the alert conditions.
Prerequisites
- Actor tested locally with
apify run
apify login configured with production token
- Familiarity with
apify-core-workflow-a and apify-deploy-integration
Pre-Deployment Checklist
Actor Configuration
Code Quality
Data Output
Instructions
Read the Actor's .actor/actor.json, INPUT_SCHEMA.json, and Dockerfile first to confirm the pre-deployment gates above, then run the six deploy steps. Each step's full command and code block lives in references/implementation.md; the skeleton is below.
- Deploy Actor —
apify push, then apify builds ls to confirm the build, then apify actors call with a small production-like input to smoke-test on-platform.
- Configure Scheduling — create a cron schedule with
client.schedules().create({...}) (or Apify Console: Actors > Your Actor > Schedules). Set cronExpression, runInput, and runOptions (memory/timeout).
- Set Up Webhooks —
client.webhooks().create({...}) on ACTOR.RUN.SUCCEEDED/FAILED/TIMED_OUT with a payloadTemplate posting runId, status, and datasetId to your server.
- Monitor Runs — a
checkActorHealth(actorId, lookbackHours) helper lists recent runs and reports success rate, failures, timeouts, and total cost.
- Implement Rollback —
apify builds ls, then repoint the Actor at a prior build via the POST /v2/acts/ACTOR_ID?build=N API, or redeploy from a git tag.
- Cost Guard —
runWithCostGuard(actorId, input, maxCostUsd) polls usageTotalUsd every 30s and aborts the run if it exceeds budget.
The first deploy step in full:
# Build and push to Apify platform
apify push
# Verify the build succeeded
apify builds ls
Output
Working through this skill produces a production-ready Actor with:
- A pushed, verified build (
apify builds ls shows a SUCCEEDED build).
- A live cron schedule and a completion webhook firing on success/failure/timeout.
- A repeatable health check printing success rate, failure/timeout counts, and 24h cost.
- A tested rollback path (build repoint or git-tag redeploy).
- A cost guard that aborts runs exceeding budget.
Health-check output looks like:
Actor: username/product-scraper
Last 24h: 3 runs, 66.7% success
Failed: 1, Timed out: 0
Total cost: $0.4213
Production Alert Conditions
| Alert |
Condition |
Severity |
| Run failed |
status === 'FAILED' |
P1 |
| Run timed out |
status === 'TIMED-OUT' |
P2 |
| Low yield |
Dataset items < expected threshold |
P2 |
| High cost |
usageTotalUsd > budget |
P2 |
| Consecutive failures |
3+ failures in a row |
P1 |
| No runs in window |
Schedule didn't trigger |
P1 |
Error Handling
| Issue |
Cause |
Solution |
| Build fails on platform |
Local deps differ |
Commit package-lock.json |
| Schedule not firing |
Cron syntax error |
Validate at crontab.guru |
| Webhook not received |
URL not reachable |
Use ngrok for testing; check HTTPS |
| Memory exceeded |
Workload too large |
Increase memory or reduce concurrency |
| Unexpected cost spike |
No maxRequestsPerCrawl |
Always set an upper bound |
Examples
Four worked examples — a first production deploy, health-check output, a cost guard aborting a runaway run, and a build rollback — are in references/examples.md. A first production deploy in brief:
# Smoke-test on-platform with a tiny input before scheduling
apify actors call username/product-scraper \
--input='{"startUrls":[{"url":"https://target.com"}],"maxItems":10}'
Then create the daily schedule and completion webhook (implementation.md Steps 2–3).
Resources
Next Steps
Once production is stable, plan version upgrades with the apify-upgrade-migration skill: it covers bumping the Actor base image, migrating INPUT_SCHEMA.json fields without breaking existing schedules, and re-running this checklist against the new build before repointing traffic.
Source: jeremylongshore/claude-code-plugins-plus-skills → plugins/saas-packs/apify-pack/skills/apify-prod-checklist/SKILL.md
1---2name: apify-prod-checklist3description: "| Production readiness checklist for Apify Actor deployments. Use when deploying an Actor to production, preparing for launch, or validating Actor configuration, scheduling, monitoring, and rollback before going live. Trigger with \"apify production\", \"deploy actor to prod\", \"apify go-live\", \"apify launch checklist\", \"actor production ready\"."4allowed-tools: "Read, Bash(apify:*), Bash(curl:*), Bash(npm:*)"5category: productivity-and-workflow6source_repo: jeremylongshore/claude-code-plugins-plus-skills7source_path: "plugins/saas-packs/apify-pack/skills/apify-prod-checklist/SKILL.md"8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/apify-pack/skills/apify-prod-checklist/SKILL.md9metadata:10 source: https://skillmd.com/skills/thedixitjain/apify-prod-checklist11---1213# Apify Production Checklist1415## Overview1617Complete checklist for deploying Actors to the Apify platform and integrating them into production applications. Covers Actor configuration, scheduling, monitoring, alerting, and rollback. Work top to bottom: clear the pre-deployment gates, then run the six deploy steps, then wire the alert conditions.1819## Prerequisites2021- Actor tested locally with `apify run`22- `apify login` configured with production token23- Familiarity with `apify-core-workflow-a` and `apify-deploy-integration`2425## Pre-Deployment Checklist2627### Actor Configuration2829- [ ] `.actor/actor.json` has correct `name`, `title`, `description`30- [ ] `INPUT_SCHEMA.json` validates all required inputs31- [ ] `Dockerfile` uses pinned base image version (`apify/actor-node:20`, not `latest`)32- [ ] `package-lock.json` committed (deterministic installs)33- [ ] Memory set appropriately (start at 1024MB, tune after profiling)34- [ ] Timeout set with buffer (2x expected runtime)3536### Code Quality3738- [ ] `Actor.main()` wraps entry point (handles init/exit/errors)39- [ ] `failedRequestHandler` logs failures without crashing Actor40- [ ] Input validation at Actor start (`if (!input?.startUrls) throw ...`)41- [ ] No hardcoded URLs, credentials, or magic numbers42- [ ] Proxy configured for target sites that block datacenter IPs43- [ ] `maxRequestsPerCrawl` set to prevent runaway costs4445### Data Output4647- [ ] Dataset schema documented (consistent field names)48- [ ] `SUMMARY` key-value store record saved with run stats49- [ ] Large payloads chunked (9MB dataset push limit)50- [ ] PII sanitized before storage5152## Instructions5354Read the Actor's `.actor/actor.json`, `INPUT_SCHEMA.json`, and `Dockerfile` first to confirm the pre-deployment gates above, then run the six deploy steps. Each step's full command and code block lives in [references/implementation.md](references/implementation.md); the skeleton is below.55561. **Deploy Actor** — `apify push`, then `apify builds ls` to confirm the build, then `apify actors call` with a small production-like input to smoke-test on-platform.572. **Configure Scheduling** — create a cron schedule with `client.schedules().create({...})` (or Apify Console: Actors > Your Actor > Schedules). Set `cronExpression`, `runInput`, and `runOptions` (memory/timeout).583. **Set Up Webhooks** — `client.webhooks().create({...})` on `ACTOR.RUN.SUCCEEDED`/`FAILED`/`TIMED_OUT` with a `payloadTemplate` posting runId, status, and datasetId to your server.594. **Monitor Runs** — a `checkActorHealth(actorId, lookbackHours)` helper lists recent runs and reports success rate, failures, timeouts, and total cost.605. **Implement Rollback** — `apify builds ls`, then repoint the Actor at a prior build via the `POST /v2/acts/ACTOR_ID?build=N` API, or redeploy from a git tag.616. **Cost Guard** — `runWithCostGuard(actorId, input, maxCostUsd)` polls `usageTotalUsd` every 30s and aborts the run if it exceeds budget.6263The first deploy step in full:6465```bash66# Build and push to Apify platform67apify push6869# Verify the build succeeded70apify builds ls71```7273## Output7475Working through this skill produces a production-ready Actor with:7677- A pushed, verified build (`apify builds ls` shows a `SUCCEEDED` build).78- A live cron **schedule** and a completion **webhook** firing on success/failure/timeout.79- A repeatable **health check** printing success rate, failure/timeout counts, and 24h cost.80- A tested **rollback** path (build repoint or git-tag redeploy).81- A **cost guard** that aborts runs exceeding budget.8283Health-check output looks like:8485```text86Actor: username/product-scraper87Last 24h: 3 runs, 66.7% success88Failed: 1, Timed out: 089Total cost: $0.421390```9192## Production Alert Conditions9394| Alert | Condition | Severity |95|-------|-----------|----------|96| Run failed | `status === 'FAILED'` | P1 |97| Run timed out | `status === 'TIMED-OUT'` | P2 |98| Low yield | Dataset items < expected threshold | P2 |99| High cost | `usageTotalUsd > budget` | P2 |100| Consecutive failures | 3+ failures in a row | P1 |101| No runs in window | Schedule didn't trigger | P1 |102103## Error Handling104105| Issue | Cause | Solution |106|-------|-------|----------|107| Build fails on platform | Local deps differ | Commit `package-lock.json` |108| Schedule not firing | Cron syntax error | Validate at crontab.guru |109| Webhook not received | URL not reachable | Use ngrok for testing; check HTTPS |110| Memory exceeded | Workload too large | Increase memory or reduce concurrency |111| Unexpected cost spike | No `maxRequestsPerCrawl` | Always set an upper bound |112113## Examples114115Four worked examples — a first production deploy, health-check output, a cost guard aborting a runaway run, and a build rollback — are in [references/examples.md](references/examples.md). A first production deploy in brief:116117```bash118# Smoke-test on-platform with a tiny input before scheduling119apify actors call username/product-scraper \120 --input='{"startUrls":[{"url":"https://target.com"}],"maxItems":10}'121```122123Then create the daily schedule and completion webhook (implementation.md Steps 2–3).124125## Resources126127- [Full deploy walkthrough (Steps 1–6)](references/implementation.md)128- [Worked examples](references/examples.md)129- [Actor Deployment Guide](https://docs.apify.com/platform/actors/development/deployment)130- [Schedules Documentation](https://docs.apify.com/platform/schedules)131- [Webhook Event Types](https://docs.apify.com/platform/integrations/webhooks/events)132- [Usage & Billing](https://docs.apify.com/platform/actors/running/usage-and-resources)133134## Next Steps135136Once production is stable, plan version upgrades with the `apify-upgrade-migration` skill: it covers bumping the Actor base image, migrating `INPUT_SCHEMA.json` fields without breaking existing schedules, and re-running this checklist against the new build before repointing traffic.137138---139140**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `plugins/saas-packs/apify-pack/skills/apify-prod-checklist/SKILL.md`