What is the cleanest way to execute solid each 10 ...
# announcements
m
What is the cleanest way to execute solid each 10 seconds (in infinite loop)?)
r
Dagster offers the ability to schedule pipeline runs (though that would be executing all the solids in a pipeline): https://docs.dagster.io/concepts/partitions-schedules-sensors/schedules
👍 2
e
As an example I can give you the following function:
Copy code
@schedule(
    cron_schedule="0 */5 * * *",
    pipeline_name="Pipeline",
    description="Schedule to execute the scraping pipeline periodically.",
    execution_timezone="EST",
    mode="basic",
)
This executes the pipeline "Pipeline" every 5 hours. Select the execution time zone based on the options that dagster provides in the bottom left corner of the Dagit UI. You can experiment with the CRON schedule string in the website: https://crontab.guru/
🙌 1