02cbfc0b941544e3706ccc2b68c1f55d57ab0087
CI/CD / build-and-push (push) Successful in 7s
asyncio.create_task() results were discarded, and the event loop only holds a weak reference to running tasks — a pending notification could be garbage-collected before executing, silently dropping Telegram messages (documented asyncio pitfall). Route the three notification call sites (trade_opened, trade_legacy_closed, trade_closed) through _notify_in_background(), which stores the task in a module-level set and discards it on completion. Notifications stay fire-and-forget; no business logic changed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Description
Polymarket trading bot
2.6 MiB
Releases
1
Languages
Python
95.8%
JavaScript
2.9%
CSS
1.1%
Dockerfile
0.1%