ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

Limit error message

Open eugenekurasov opened this issue 6 years ago • 3 comments

Is possible prevent a lot send error message? Send only one error message per 1h?

For example:

[global]
save-folder=/tmp
save-only-on-error=true
error-alert-frequency-per-job=1h

What you think about it?

eugenekurasov avatar Jan 09 '20 16:01 eugenekurasov

@Trane9991 what are you think if I create PR with this feature?

eugenekurasov avatar Jan 10 '20 08:01 eugenekurasov

Hey. Sorry for the long reply.

What is the use-case for this feature? Your job fails often and that generates too many similar log files?

taraspos avatar Jun 11 '20 16:06 taraspos

In my case I use slack notification. So I get a lot slack notification with same error. My proposition is save hash of command+error message and don't send duplicate again.

eugenekurasov avatar Jun 11 '20 17:06 eugenekurasov