Skip to content

Conversation

@tomaszwojcikowski
Copy link

Add optional timeout parameter to run_tracked

Adds run_tracked/3 with an optional timeout parameter to allow limiting task execution time. The existing run_tracked/2 preserves backward compatibility by using infinity as the default timeout.

Changes

  • Add run_tracked/3 with configurable timeout support
  • Tasks exceeding the timeout are terminated and logged with task_timeout error
  • run_tracked/2 maintains previous behavior (no timeout)
  • Add test case run_tracked_timeout to verify timeout functionality

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.35%. Comparing base (a8290be) to head (caa8999).

Files with missing lines Patch % Lines
src/cets_long.erl 95.83% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   98.44%   98.35%   -0.09%     
==========================================
  Files          11       11              
  Lines         834      851      +17     
==========================================
+ Hits          821      837      +16     
- Misses         13       14       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants