From c5367cd10130b54d1a559625c4b7a3e7166c183c Mon Sep 17 00:00:00 2001 From: stuppie Date: Wed, 17 Jun 2026 10:37:37 -0600 Subject: issue_worker_payment dont try to issue more than at a time, b/c it wont work and then the user will never have any balance released --- jb/flow/assignment_tasks.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jb/flow/assignment_tasks.py') diff --git a/jb/flow/assignment_tasks.py b/jb/flow/assignment_tasks.py index 326c87c..758e0b7 100644 --- a/jb/flow/assignment_tasks.py +++ b/jb/flow/assignment_tasks.py @@ -471,6 +471,10 @@ def issue_worker_payment( if not amount: return None + # Don't send more than $4.97 at a time. If they have a higher wallet balance, + # they just need to get another hit approved. + amount = min(amount, USDCent(4_97)) + pe = submit_and_approve_amt_bonus_request( amt_worker_id=assignment.amt_worker_id, amount=amount ) -- cgit v1.2.3