Do we still need TaskResults? #1607
Labels
area/general
Related to whole service, not a specific part/integration.
complexity/single-task
Regular task, should be done within days.
gain/low
This doesn't bring that much value to users.
impact/low
This issue impacts only a few users.
kind/technical-debt
The code needs love. Refactoring.
TaskResults
was introduced in #15 asHandlerResults
because we wanted to somewhere store info about performed Celery tasks and this was the easiest since Celery can store task results (i.e. what a handler method returns) automatically once a backend (database) is configured.It was before we started using PostgreSQL so the backend was the same as the broker, i.e. Redis.
After switching to PostgreSQL those results were stored there, but after some time we disabled it because we hadn't actually ever used/checked them.
The initial idea behind #15 was that
HandlerResults.success
would tell us whether all jobs succeeded and if not an Exception would be raised (sent to Sentry). AndHandlerResults.details
would contain more info from handlers, to be stored in the backend.Given that we don't store the task results in the backend anymore, I'm wondering whether we actually use the TaskResults.details anywhere or whether it can be removed. And the same with
TaskResults.success
.The text was updated successfully, but these errors were encountered: