fix(kugetsu): return proper JSON array from get_pending_tasks() #163
Reference in New Issue
Block a user
Delete Branch "fix/issue-155-queue-list-json"
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
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
lgtm