Solvedagenda Agenda cannot initialize with MongoDB Unified Topology Design

If I set { useUnifiedTopology: true } in MongoDB connection options, Agenda will failed with error:

node_modules/agenda/lib/agenda/find-and-lock-next-job.js:26
  if (s.topology.connections().length === 0) {
                 ^

TypeError: s.topology.connections is not a function

I am using these versions:

  "dependencies": {
    "agenda": "^2.3.0",
    "mongodb": "^3.5.2"
  }

You can learn more about unified topology at http://mongodb.github.io/node-mongodb-native/3.5/reference/unified-topology/.

Thanks for your time.

18 Answers

βœ”οΈAccepted Answer

Released in v3.0.0 πŸŽ‰

Related Issues:

6
agenda typing issue
I can confirm this works with node 14.16.0 and agenda 4.1.2 Faced this issue today after updating fr...
5
agenda Agenda cannot initialize with MongoDB Unified Topology Design
Released in v3.0.0 πŸŽ‰ If I set { useUnifiedTopology: true } in MongoDB connection options ...
11
n8n Reverse Proxy
Forget that found a helpful thread on server-sent events and nginx I added proxy_buffering off; prox...
22
bull Error: Could not remove job
@simpleshadow it has been a major pain point for my use case unfortunately along with this ...
21
bull Empty and clean jobs
a solution I used that doesnt involve adding another library is this: Hi I'm using bull in my Node.j...
18
bull Possible memory leak if too many process
It's a property not a method. node: v6.9.5 bull: ^3.0.0-alpha.1 It will throw this error (node:83132...
13
bull Share redis client across queues created by bull() calls?
Thanks @manast for the quick fix! That definitely helped! Locally it reduced my usage from 26 to 18 ...
7
bull Missing lock for job
We also have this issue but without any specific configuration (just host and port) no custom redis ...
140
horizon Timeout for long running task
I already found a solution to my problem Hi I have a task that will take a few minutes to complete ...
67
horizon Jobs get processed multiple times
After delving into Horizon Redis Queues Lua script and redis-cli I finally determined what my proble...
41
horizon can this be used to scale job processing to multiple servers?
So I was wondering this as well since we host our Laravel app on Heroku Heroku has the ability to ea...
14
horizon Multiple horizon instances on one server not working
I was facing a similar issue and what I did was to set up env variables to represent each worker I w...
3
huey Disable root logger in consumer
My workaround to avoid Huey's logging configuration: I'm converting an existing code base to use Hue...
27
airflow Negsignal.SIGKILL error on macOS
It's not completely related but I had a different error message and Google lead me here ...
15
airflow Migrate from 2.1.4 to 2.2.0
SQL we used from our deployment playbook to clean up these tables Obviously a disclaimer on running ...
13
airflow Airflow webserver not starting with SQLAlchemy==1.3.16
The problem seems to be SQLAlchemy version 1.3.16 which was released 8 hours ago i downgraded to 1.3...
11
airflow scheduler gets stuck without a trace
We just saw this on 2.0.1 when we added a largish number of new DAGs (We're adding around 6000 DAGs ...
11
airflow Add Production-ready docker compose for the production image
I have prepared some Dockerfiles with some common configuration Description In order to use the prod...
3
devextreme reactive How to change table border styles
Try this It worked for me. React Grid I checked the doc see how to style or create a custom theme fo...
3
devextreme reactive Fixed Header and Left / Right Column
Thank you for the clarification In your case you need to implement the VirtualTable plugin instead o...