fix(queue-daemon): implement timeout handling for long-running tasks #228
Reference in New Issue
Block a user
Delete Branch "fix/issue-166"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implement timeout handling for queue daemon tasks that run too long.
Changes
notified_attimestamp incheck_task_completion()TASK_TIMEOUT_HOURS(defaults to 1 hour)Fixes
Fixes #166
@@ -44,0 +62,4 @@opencode session stop "$session_id" 2>/dev/null || truefiupdate_queue_item_state "$queue_id" "error"echo "Task $queue_id ($issue_ref) marked error — timeout after ${hours_elapsed}h"for echo related stuff in this PR, I'd like to possibly use kugetsu-log rather than a raw echo so we can have a unified formatted log. what do you think?
for echo related stuff in this PR, I'd like to possibly use kugetsu-log rather than a raw echo so we can have a unified formatted log. what do you think?
lgtm