Skip to content

WIP: Make receipt_iso_timestamp mandatory in process_sms_client_response and process_ses_results#4843

Closed
robinjam wants to merge 2 commits into
mainfrom
jar-make-callback-receipt-dt-mandatory
Closed

WIP: Make receipt_iso_timestamp mandatory in process_sms_client_response and process_ses_results#4843
robinjam wants to merge 2 commits into
mainfrom
jar-make-callback-receipt-dt-mandatory

Conversation

@robinjam
Copy link
Copy Markdown
Contributor

@robinjam robinjam commented May 7, 2026

https://trello.com/c/25A3gpXh/1358-replace-statsd-instrumentation-across-notify-with-otel

(Not strictly related to this ticket, but it's relevant because I want to use receipt_iso_timestamp in a metric)

When adding attributes to an existing Celery task we have to make them optional, so that task invocations that were queued before the new attributes were introduced can still work.

These attributes were all added a long time ago though, so that risk shouldn't exist anymore. This commit makes them all mandatory, and updates our tests accordingly.

I've also made receipt_iso_timestamp non-nullable and removed the error handling around its parsing, because it's generated by us at the point where we receive the callback, and therefore can't ever be invalid (and if it ever is invalid then we have a bug).

robinjam added 2 commits May 7, 2026 14:49
When adding attributes to an existing Celery task we have to make them
optional, so that task invocations that were queued before the new
attributes were introduced can still work.

These attributes were all added a long time ago though, so that risk
shouldn't exist anymore. This commit makes them all mandatory, and
updates our tests accordingly.

I've also made `receipt_iso_timestamp` non-nullable and removed the
error handling around its parsing, because it's generated by us at the
point where we receive the callback, and therefore can't ever be invalid
(and if it ever is invalid then we have a bug).
When adding attributes to an existing Celery task we have to make them
optional, so that task invocations that were queued before the new
attributes were introduced can still work.

The `receipt_iso_timestamp` attribute was added a long time ago though,
so that risk shouldn't exist anymore. This commit makes it mandatory,
and updates our tests accordingly.

I've also made it non-nullable and removed the error handling around its
parsing, because it's generated by us at the point where we receive the
callback, and therefore can't ever be invalid (and if it ever is invalid
then we have a bug).
@robinjam robinjam marked this pull request as draft May 7, 2026 14:39
@robinjam robinjam changed the title Make receipt_iso_timestamp mandatory in process_sms_client_response and process_ses_results WIP: Make receipt_iso_timestamp mandatory in process_sms_client_response and process_ses_results May 7, 2026
@robinjam robinjam closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant