Skip to content

fix(sources): never pay Indian Kanoon again for a judgment whose case is waiting to publish - #276

Merged
KiranPranay merged 1 commit into
mainfrom
fix/ik-never-repay-waiting-judgments
Oct 18, 2026
Merged

KiranPranay merged 1 commit into
mainfrom
fix/ik-never-repay-waiting-judgments

Conversation

@KiranPranay

Copy link
Copy Markdown
Member

While publishing was blocked (12–14 October), Indian Kanoon downloaded the same 38 judgments three days running. Their cases were waiting on data-staging, and my check for already-handled judgments (#262) didn't count waiting ones as handled. That likely used up the account credit; the source has been refused (HTTP 403) since the 15th.

A waiting case is carried over from data-staging anyway, so its judgment is now treated as handled. A judgment whose extraction failed is still retried.

A test covers all four cases: settled, waiting, failed and new. make check is green.

… is waiting to publish

While publishing was blocked (12-14 October), Indian Kanoon downloaded the same 38
judgments three days running: their cases were waiting on data-staging, and my check for
already-handled judgments (#262) didn't count waiting ones. That likely used up the account
credit, and the source has been refused since the 15th. A waiting case is carried over
anyway, so its judgment is now treated as handled. A judgment whose extraction failed is
still retried.
@KiranPranay
KiranPranay merged commit 5ddec26 into main Oct 18, 2026
3 checks passed
@KiranPranay
KiranPranay deleted the fix/ik-never-repay-waiting-judgments branch October 18, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant