Open hrubyjan opened 3 years ago
On the call, I think we said unexpected exceptions (e.g. from OCDS Kit during upgrade or OCDS Merge during compile) would be considered errors (though I don't know if these caused a "failed" or "warn" state per #32).
@jakubkrafka Other than Sentry (which is disabled), where can I find/query a log of warnings and errors?
Assigning for question above.
Each docker container (besides of scrapyd logs for particular jobs - scrapy in general lacks this capability) logs into the stdout/console - thus they are captured by the docker itself. All the logs can be inspected via
docker logs <container_name>
Needs to be open for the original issue :)
Kingfisher Process stores messages in collection_note
with warning and error levels. We can:
Errors are:
These errors aren't individually severe enough to prevent publication, but maybe there's a % threshold.
Warnings are:
These warnings are indeed fine. By getting notified, we can update quality descriptions.
If emails get noisy, we can maybe think about logic for silencing some alerts (e.g. silence unless threshold increases), similar to how Sentry does it. (This would be for a new issue.)
Related: https://github.com/open-contracting/kingfisher-process/issues/222
At the end of each phase of data processing we should evaluate whether it ended well, there is something suspicious or this particular phase failed. For
process
phase define criteria that will a) prevent a dataset from being published in data registryb) raise a warning but will not prevent dataset from being published
We should not insist on having some criteria if we will not see some meaningful rules