Fix signal handling #2

Open
opened 2023-09-30 05:19:16 +00:00 by roysc · 0 comments
Member

Signals (specifically INT and TERM) don't actually interrupt processing:

INFO[09-30|13:17:54] Starting statediff service in Postgres writing mode 
INFO[2023-09-30T13:18:04+08:00] Creating snapshot                             hash=0x65d393d9520e19d667df6a97b696ed4d711b2d21c17ad9bd2c992475747b0c0b height=200
^CERRO[2023-09-30T13:18:05+08:00] Signal received (interrupt), stopping        
INFO[2023-09-30T13:18:10+08:00] State snapshot at height 200 is complete      SubCommand=stateSnapshot

A test should also be added once this is fixed.

Signals (specifically INT and TERM) don't actually interrupt processing: ``` INFO[09-30|13:17:54] Starting statediff service in Postgres writing mode INFO[2023-09-30T13:18:04+08:00] Creating snapshot hash=0x65d393d9520e19d667df6a97b696ed4d711b2d21c17ad9bd2c992475747b0c0b height=200 ^CERRO[2023-09-30T13:18:05+08:00] Signal received (interrupt), stopping INFO[2023-09-30T13:18:10+08:00] State snapshot at height 200 is complete SubCommand=stateSnapshot ``` A test should also be added once this is fixed.
roysc self-assigned this 2023-09-30 05:19:16 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-state-snapshot#2
No description provided.