hasura / hasura/graphql-engine
"could not find cron trigger in cache"
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
From time to time we've seen such errors in our logs `"could not find cron trigger in cache"` which seem to originate from this part of the code: https://github.com/hasura/graphql-engine/blob/5cc91aebc342b3826656c351f4e78e352dea10de/server/src-lib/Hasura/Eventing/ScheduledTrigger.hs#L241
To provide better context, would it be possible to include the `id` and the `name` of the failing cron event in the error message? For example, this code seems to include those details already:
```
for_ cronEvents $ \(CronEvent id' name st _ tries _ _)-> do
case Map.lookup name cronTriggersInfo of
Nothing -> logInternalError $
err500 Unexpected "could not find cron trigger in cache"
```
Thanks for your help!
Contributor guide
Assessment
This issue has not been assessed yet.