Skip to content

Terminate the scraper if a there is a code fault in one of the modules #442

@nwinklareth

Description

@nwinklareth

This morning during a run, when the CSV writer was executing a program exception was thrown. This was not caught by scraper code, it was caught by the greenlet code, which terminated the task. The terminated task was the backend task, which meant that all of the database requests were queued up, which balloned the memory usage of the process. This behaviour is wrong.

Modules in the scraper should terminate when code exceptions occur or when other drastic events occur. They should report the event as part of the termination process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions