fix(kugetsu): return proper JSON array from get_pending_tasks() #163

Merged
shoko merged 1 commits from fix/issue-155-queue-list-json into main 2026-04-06 01:45:10 +02:00
Owner

Summary

  • Rewrite get_pending_tasks() to output a proper JSON array instead of concatenated JSON objects
  • Fixes JSON decode error when running 'kugetsu queue list'

Root Cause

Issue #155: get_pending_tasks() was using shell pipeline with 'cat' to output individual JSON objects concatenated together (one per line). The caller was using json.load() which expects a single JSON value, not multiple concatenated JSON objects.

Fix

Rewrite get_pending_tasks() in pure Python to collect pending items and return a proper JSON array.

Fixes #155

## Summary - Rewrite get_pending_tasks() to output a proper JSON array instead of concatenated JSON objects - Fixes JSON decode error when running 'kugetsu queue list' ## Root Cause Issue #155: get_pending_tasks() was using shell pipeline with 'cat' to output individual JSON objects concatenated together (one per line). The caller was using json.load() which expects a single JSON value, not multiple concatenated JSON objects. ## Fix Rewrite get_pending_tasks() in pure Python to collect pending items and return a proper JSON array. Fixes #155
shoko added 1 commit 2026-04-06 01:44:04 +02:00
han approved these changes 2026-04-06 01:44:56 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 77cf817568 into main 2026-04-06 01:45:10 +02:00
Sign in to join this conversation.