Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(event): use fallback for accepted time (#2335)
fix(event): use fallback for accepted time When submitting failed Copr builds to the Pushgateway, we're using time of accepting the task, in some cases we don't have time of accepting, so use ‹created_at› as a fallback. Fixes #2258 Not sure about this change, since for the last occurrence in Sentry the difference between the reported time of failure and created_at is 5 minutes. I can the ‹task_accepted_time› only in DB, but this is happening even before the build starts, cause it's coming from an issue caused by submitting the build, so I would say that we should use the datetime.now()? But OTOH it doesn't feel like it's skipping the Celere queue and being handled right away. Reviewed-by: Maja Massarini
- Loading branch information