Skip to content
Back to skills

Automation Schedules Sensors

ASecurity

"Define, debug, and test Dagster schedules, sensors, asset sensors,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
toolspythonreactapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill automation-schedules-sensors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Automation Schedules Sensors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Automation Schedules Sensors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-automation-schedules-sensors/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-automation-schedules-sensors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: automation-schedules-sensors
description: "Define, debug, and test Dagster schedules, sensors, asset sensors,
  run status sensors, declarative automation conditions, freshness automation,
  and backfill policies."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Automation: schedules, sensors, and declarative conditions

Use this sub-skill when the task is about time-based or event-based automation in Dagster code:

- `ScheduleDefinition`, `@schedule`, cron schedules, time zones, schedule run config/tags, and schedule unit tests.
- `@sensor`, `RunRequest`, `SkipReason`, `SensorResult`, cursor handling, run keys, resource-backed sensors, and sensor unit tests.
- `@asset_sensor`, run status sensors, failure sensors, and tests using built Dagster context objects.
- `AutomationCondition`, `AutomationConditionSensorDefinition`, freshness-driven automation, and `BackfillPolicy` for partitioned assets.

Route elsewhere when the task is primarily about core asset modeling, deployment/daemon operations, or starting/stopping local CLI processes.

## Start here

- For implementation patterns and API choices, read [references/api-reference.md](references/api-reference.md).
- For end-to-end workflows and test commands, read [references/workflows.md](references/workflows.md).
- For common failures and fixes, read [references/troubleshooting.md](references/troubleshooting.md).
- To safely inspect what CLI preview commands would be used, run `python skills/dagster/sub-skills/automation-schedules-sensors/scripts/preview_sensor_schedule.py --help`.

## Quick routing

- Need a cron trigger for a job or asset job: use `@schedule` or `ScheduleDefinition`; test with `build_schedule_context()` and `.evaluate_tick()`.
- Need polling logic or external-event logic: use `@sensor`, stable `RunRequest(run_key=...)`, and `context.update_cursor(...)` or `SensorResult(cursor=...)`.
- Need to react to one asset materialization: use `@asset_sensor`; prefer declarative automation for asset dependency propagation when custom per-event run config is not required.
- Need to react to job success/failure: use `@run_status_sensor` or `@run_failure_sensor`; avoid triggering an infinite loop when the requested job can produce the same monitored status.
- Need asset-centric freshness, dependency, or backfill behavior: prefer `AutomationCondition.on_cron()`, `AutomationCondition.eager()`, `AutomationCondition.on_missing()`, freshness policies/checks, and `BackfillPolicy`.

## Definition checklist

- Put schedules and sensors in the repository or `Definitions(schedules=[...], sensors=[...])` that loads with the target jobs/assets.
- Use only one target style per schedule/sensor: `job`, `job_name`, `jobs`, `asset_selection`, or `target` as accepted by that definition.
- Give every multi-request schedule a non-empty `run_key` on each `RunRequest`; use stable sensor run keys only when duplicate suppression should survive cursor resets.
- Keep schedule/sensor evaluation pure enough for unit tests: move network/credentialed calls behind resources that can be stubbed in `build_*_context`.
- For declarative automation, ensure the automation condition sensor is present and enabled in the deployment; route daemon lifecycle and deployment checks to the deployment operations skill.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md8.1 KB
  • references/troubleshooting.md8.1 KB
  • references/workflows.md7 KB
  • scripts/preview_sensor_schedule.py5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.