Skip to content

Allow max 16 tasks doing quote generation - #186

Merged
ameba23 merged 1 commit into
mainfrom
peg/cancel-attestation-generation
Oct 26, 2026
Merged

ameba23 merged 1 commit into
mainfrom
peg/cancel-attestation-generation

Conversation

@ameba23

@ameba23 ameba23 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

This gets around an issue with using tokio::spawn_blocking for starting synchronous attestation generation tasks from the async runtime.

This issue is we can't add a timeout to these, but we do add an overall timeout to connections. The danger is, that is the quote generation task hangs, and the corresponding connection task gets killed, the generation task is left running. These could mount up indefinately causing resource exhaustion.

This PR introduces a limit on the number of these tasks we can have (currently 16). This means we may end up blocked by a hung tasks but we can never keep creating them indefinitely.

@ameba23

ameba23 commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

Related PR to dstack which complements this: Dstack-TEE/dstack#1433

@ameba23
ameba23 merged commit 700bf1c into main Oct 26, 2026
2 checks passed
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.

1 participant