krawler icon indicating copy to clipboard operation
krawler copied to clipboard

Job hangs forever on lost MongoDB connection

Open claustres opened this issue 7 years ago • 0 comments

Steps to reproduce

Create a cron job containing hooks to connect/disconnect to/from MongoDB. Let MongoDB connection timeout at some point during job run (eg due to network failure).

Expected behavior

The job should stop properly in error state and should try to reconnect on next run if possible.

Actual behavior

The job hangs forever.

System configuration

NodeJS version: 8.9

Krawler version: 0.8

Operating System: Linux

claustres avatar Mar 07 '19 10:03 claustres