Replies: 1 comment
-
@Royce We don’t have plans to support cosmosdb anytime soon. I will be not be closing the issue, rather I will convert this into a discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cosmosdb's mongodb API implementation requires an index that agenda does not provide.
Problem
Debug logs:
The query that failed is approximately this:
Workaround
Assuming default config etc. which is:
new Agenda({db: {collection: 'agendaJobs'}})
and.sort({ nextRunAt: 1, priority: -1 })
Create this index.
Beta Was this translation helpful? Give feedback.
All reactions