Jay Jackson
06/21/2022, 7:55 PMdagster-daemon
and I'm not seeing it in the dagit UI ..
dagster-daemon run -w dagster-workspace.yaml
@schedule(
cron_schedule="* * * * *",
pipeline_name="my_job",
job=my_job,
)
def my_job_schedule(context):
# Find runs of the same job that are currently running
run_records = context.instance.get_run_records(
RunsFilter(job_name="my_job",
statuses=[DagsterRunStatus.STARTED]))
# Kick off a run only if no other runs of the same job are running
if len(run_records) == 0:
yield RunRequest()
Jay Jackson
06/21/2022, 7:57 PMdagster schedule start
, that cmd is giving me There are no schedules defined for repository
alsorex
06/21/2022, 8:01 PM@repository
that you specified in your workspace.yaml. Could you show your repository definition?Jay Jackson
06/21/2022, 8:02 PMdagster-workspace.yaml
->
load_from:
- python_file:
relative_path: data/workflow-recommendations.py
Jay Jackson
06/21/2022, 8:03 PMworkflow-recommendations.py
, I only have the @job decorator , do i need the @repository as well?Jay Jackson
06/21/2022, 8:05 PMJay Jackson
06/21/2022, 8:10 PMrex
06/21/2022, 8:12 PM