https://dagster.io/ logo
b

Brian Abelson

02/11/2021, 6:04 PM
is there a recommended process for schedule changes (or maybe this is a user error but a cryptic error message)? i changed the schdedule intervals for my pipelines and im getting this GraphQL error:
Copy code
Operation name: SchedulesRootQuery

Message: Invariant failed.

Path: ["repositoryOrError","schedules",0,"futureTicks"]

Locations: [{"line":130,"column":3}]

Stack Trace:
  File "/usr/local/lib/python3.8/site-packages/graphql/execution/executor.py", line 452, in resolve_or_error
    return executor.execute(resolve_fn, source, info, **args)
  File "/usr/local/lib/python3.8/site-packages/graphql/execution/executors/sync.py", line 16, in execute
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/dagster_graphql/schema/schedules/schedules.py", line 96, in resolve_futureTicks
    tick_times.append(next(time_iter).timestamp())
  File "/usr/local/lib/python3.8/site-packages/dagster/utils/schedules.py", line 27, in schedule_execution_time_iterator
    check.invariant(len(cron_parts) == 5)
  File "/usr/local/lib/python3.8/site-packages/dagster/check/__init__.py", line 172, in invariant
    raise_with_traceback(CheckError("Invariant failed."))
  File "/usr/local/lib/python3.8/site-packages/future/utils/__init__.py", line 446, in raise_with_traceback
    raise exc.with_traceback(traceback)
i just changed
cron_schedule="0 * * * *"
to
cron_schedule="10 6,11,16,21 * * * *"
p

prha

02/11/2021, 6:05 PM
I think there might be an extra
*
in there?
b

Brian Abelson

02/11/2021, 6:07 PM
yep, you're right.
p

prha

02/11/2021, 6:09 PM
We should wrap this so you get a better error message (maybe at definition time)?