Open
Bug 1888939
Opened 1 year ago
Refactor the output of PubSubCrashQueue.__iter__
Categories
(Socorro :: Backend, task)
Socorro
Backend
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: relud, Unassigned)
References
(Depends on 1 open bug)
Details
the pubsub crash queue __iter__ method has a return type that is perhaps unnecessarily complex for what it returns. it used to be useful, but it could probably be simplified it now that it isn't needed.
def __iter__(self): """Return iterator over crash ids from Pub/Sub. Each returned crash is a ``(crash_id, {kwargs})`` tuple with ``finished_func`` as the only key in ``kwargs``. The caller should call ``finished_func`` when it's done processing the crash. """
from :willkg in https://github.com/mozilla-services/socorro/pull/6554#discussion_r1532813328
This is a remnant of how the processor did stuff years ago. We could probably refactor this curiosity out if we cared.
This should wait until after the GCP migration in bug 1687802 so that support for sqs can be dropped instead of also refactoring that.
status is UNCONFIRMED because there has not yet been a decision to actually do this.
You need to log in
before you can comment on or make changes to this bug.
Description
•