Daniel Caldeweyher
03/31/2021, 4:10 PMweekly = CronSchedule("15 1 * * *", start_date=DEFAULT_START_DATE)
with Flow("Daily Extract", schedule=weekly) as flow:
...
This flow was happily running at the scheduled time at 1:15 a.m. every day, except now it just stopped getting scheduled. Curiously today is the first day of the next month....Daniel Caldeweyher
03/31/2021, 4:12 PMDaniel Caldeweyher
03/31/2021, 4:13 PMDaniel Caldeweyher
03/31/2021, 4:27 PMDaniel Caldeweyher
03/31/2021, 4:30 PMThe scheduler periodically queries for flows with active schedules and creates flow runs corresponding to the next 10 scheduled start times of the flow.Any ideas what could cause it to stop doing that?
nicholas
Daniel Caldeweyher
03/31/2021, 5:50 PMnicholas
Daniel Caldeweyher
03/31/2021, 5:53 PMDaniel Caldeweyher
03/31/2021, 5:53 PMnicholas
Daniel Caldeweyher
03/31/2021, 5:58 PMCopy code{ "severity": "ERROR", "name": "prefect-server.Scheduler", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))" }
Daniel Caldeweyher
03/31/2021, 5:58 PMnicholas
Daniel Caldeweyher
03/31/2021, 5:59 PMDaniel Caldeweyher
03/31/2021, 6:00 PM<https://github.com/PrefectHQ/prefect/blob/master/src/prefect/cli/docker-compose.yml>
Daniel Caldeweyher
03/31/2021, 6:01 PMnicholas
Daniel Caldeweyher
03/31/2021, 6:04 PMDaniel Caldeweyher
03/31/2021, 6:06 PMDaniel Caldeweyher
03/31/2021, 6:16 PMDaniel Caldeweyher
03/31/2021, 6:17 PMgraphql_url = "http://${server.hasura.host}:${server.hasura.port}/v1alpha1/graphql"
according to https://github.com/PrefectHQ/prefect/blob/master/src/prefect/config.tomlDaniel Caldeweyher
03/31/2021, 6:21 PMtowel
service needs:
links:
- hasura
Daniel Caldeweyher
03/31/2021, 6:42 PMnicholas
prefect server start
)Daniel Caldeweyher
03/31/2021, 6:50 PMnicholas
Daniel Caldeweyher
03/31/2021, 6:52 PMgraphql
where as the apollo service links to both which is also reflected in the env variablesDaniel Caldeweyher
03/31/2021, 6:52 PMDaniel Caldeweyher
03/31/2021, 6:53 PMDaniel Caldeweyher
03/31/2021, 6:56 PMDaniel Caldeweyher
03/31/2021, 7:02 PMnicholas
depends_on
lines - they dictate when a container can start, rather than actual links between the containers. In those cases the various container definitions depend on another container being started and healthy. So for apollo, the graphql container needs to be started in order to correctly build the apollo service.nicholas