Skip to content

Add expires message header#61

Merged
midnightercz merged 1 commit into
release-engineering:mainfrom
emilyzheng:expire-header
Jan 26, 2026
Merged

Add expires message header#61
midnightercz merged 1 commit into
release-engineering:mainfrom
emilyzheng:expire-header

Conversation

@emilyzheng

Copy link
Copy Markdown
Contributor

The header is time in milliseconds to expire the message.

@codecov-commenter

codecov-commenter commented Jan 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (083406c) to head (b3fa8f1).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines         1276      1276           
=========================================
  Hits          1276      1276           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The header is time in milliseconds to expire the message.
@midnightercz midnightercz merged commit 515168c into release-engineering:main Jan 26, 2026
7 checks passed

@lslebodn lslebodn left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of post merge questions.

"mtype": sig_type.value,
"source": "metadata",
"expires": self.timeout * self.retries * 1000,
}

@lslebodn lslebodn Jan 26, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, you are not anymore interested in the 1st message when you do retry.
So IMHO self.timeout * 1000 should be enough

The class Message has dedicated properties related to expiration

 property ttl: float

    The time to live of the message measured in seconds. Expired messages may be dropped.
 property expiry_time: float

    The absolute expiry time of the message in seconds using the Unix time_t [IEEE1003] encoding.

Is the current code really equivalent?

@lslebodn lslebodn Jan 27, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JFTR Addressed in #62 62

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.

4 participants