krawler
krawler copied to clipboard
Job hangs forever on lost MongoDB connection
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