Skip to content

Prevent task and onTimeout running concurrently by wait for task to resolve before executing onTimeout#147

Merged
radovanjorgic merged 4 commits intomainfrom
rado/ISS-262861-v2
Feb 26, 2026
Merged

Prevent task and onTimeout running concurrently by wait for task to resolve before executing onTimeout#147
radovanjorgic merged 4 commits intomainfrom
rado/ISS-262861-v2

Conversation

@radovanjorgic
Copy link
Copy Markdown
Collaborator

Description

This PR prevents task and onTimeout running concurrently. It now expects that developers will return from worker in case there is a timeout. This way we handle the process more gracefully.

Connected Issues

https://app.devrev.ai/devrev/works/ISS-262861

Checklist

  • Tests added/updated and ran with npm run test OR no tests needed.
  • Ran backwards compatibility tests with npm run test:backwards-compatibility.
  • Code formatted and checked with npm run lint.
  • Tested airdrop-template linked to this PR.
  • Documentation updated and provided a link to PR / new docs OR no docs needed.

@radovanjorgic radovanjorgic marked this pull request as ready for review February 25, 2026 07:23
@radovanjorgic radovanjorgic requested review from a team and gasperzgonec as code owners February 25, 2026 07:23
Comment thread src/multithreading/process-task.ts Outdated
Comment thread src/multithreading/worker-adapter/worker-adapter.ts
@radovanjorgic radovanjorgic merged commit fbff5a1 into main Feb 26, 2026
8 checks passed
@radovanjorgic radovanjorgic deleted the rado/ISS-262861-v2 branch February 26, 2026 08:24
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.

2 participants