dystonse / dystonse-gtfs-data

Read gtfs and gtfs-realtime data, write them into a database, perform and export analyses and make predictions based on them.
9 stars 2 forks source link

Better error handling for db (connection) errors. #2

Open lenaschimmel opened 4 years ago

lenaschimmel commented 4 years ago

Currently, if the database connection is broken, it is handled as an error of the realtime file, and the file will be moved into the fail_dir.

The file should stay where it is, so that it will be imported once the database is available again.

Also, database failures should be visible in our healthchecks. Currently the healtcheck will be pinged even if no files could be imported due to database errors.