Repository navigation
feat(providers): make the mail send deadline public - #58
Conversation
Hosts that size a lease or timeout around a send need the same bound SmtpMail enforces. MAIL_SEND_DEADLINE_SECONDS now lives in jasil.providers; the SMTP backend and the composition root's max_runtime_seconds warning read it from there. Closes #57 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What does this PR do?
Makes the per-message SMTP send deadline public as
jasil.providers.MAIL_SEND_DEADLINE_SECONDS(90 seconds), so a host can size a lease or timeout around a send without importing a private backend name or copying90.jasil/backends/mail_smtp.pyand themax_runtime_secondswarning injasil/container.pyread the constant fromjasil.providers.jasil.container.SMTP_SEND_DEADLINE_SECONDS(listed as not covered indocs/api-stability.md) is removed.Related issue
Closes #57
Type of change
Checklist
Notes for the reviewer
The container tests now check the warning boundary against the constant (
== deadlinewarns,deadline + 1does not) rather than fixed numbers.Checks run: ruff, ruff format, lint-imports, mypy, pytest (3642 passed, 139 skipped, 97.79% coverage),
check_module_coverage.py,check_docs_api.py.🤖 Generated with Claude Code
Summary by CodeRabbit