signalモジュールのimport漏れを修正 #2

Merged
yotta merged 1 commits from codex/fix-signal-import into main 2026-07-20 01:41:46 +00:00
Owner

変更内容

  • 起動時に使用する signal モジュールのimport漏れを修正
  • SIGINT/SIGTERMハンドラー登録の回帰テストを追加

原因

HTTPヘルスチェック追加後も main() で signal.signal() を呼び出していましたが、import signal がなく、コンテナが NameError で再起動を繰り返していました。

検証

  • python -m unittest discover -s tests -v: 10 tests passed
  • python -m py_compile app.py: passed
  • git diff --check: passed
## 変更内容 - 起動時に使用する signal モジュールのimport漏れを修正 - SIGINT/SIGTERMハンドラー登録の回帰テストを追加 ## 原因 HTTPヘルスチェック追加後も main() で signal.signal() を呼び出していましたが、import signal がなく、コンテナが NameError で再起動を繰り返していました。 ## 検証 - python -m unittest discover -s tests -v: 10 tests passed - python -m py_compile app.py: passed - git diff --check: passed
yotta added 1 commit 2026-07-20 01:16:37 +00:00
signalモジュールのimport漏れを修正
Validate and publish container image / build (pull_request) Successful in 5m46s
a527f14a57
yotta merged commit a1bdb2576d into main 2026-07-20 01:41:46 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yotta/EmailToDiscord#2