"""Dagster schedules for periodic data refresh."""

from dagster import ScheduleDefinition
from optovia_data.jobs import refresh_egrul_job

# Run EGRUL refresh every Monday at 3 AM
weekly_egrul_schedule = ScheduleDefinition(
    job=refresh_egrul_job,
    cron_schedule="0 3 * * 1",  # Monday 3 AM
    name="weekly_egrul_refresh",
    description="Weekly refresh of EGRUL data for all companies",
)
