Skip to content

Conversation

@dexyk
Copy link
Contributor

@dexyk dexyk commented Sep 25, 2025

📝 Description

Replaced Task.async/await with the Wormhole library in Zebra.Workers.Scheduler.Org to resolve Cachex blocking issues.

When using Task.async/await inside Cachex.fetch/3, if the fallback function crashed or timed out, subsequent calls would block indefinitely, as described in the linked Cachex issue.

By switching to Wormhole.capture/4, the call is executed in a supervised process with timeout handling and proper cleanup, preventing Cachex lockups.

Added tests for error handling, timeouts, and caching behavior.

More details in this task.

✅ Checklist

  • I have tested this change
  • This change requires documentation update N/A

@dexyk dexyk merged commit 0b7cca8 into main Sep 26, 2025
2 checks passed
@dexyk dexyk deleted the dk/zebra/fix_cachex_stuck_issue branch September 26, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants