Skip to content

Schedules can't process long AI requests #600

@SamyPesse

Description

@SamyPesse

Describe the bug
When using the schedule feature to "debounce" processing some async workflow, the execution is limited to only 30s, or it'll fail with:

IoContext timed out due to inactivity; waitUntil tasks were canceled without completing.

It happens as we have to void a promise instead of await it in the scheduled function, as otherwise it fails because of the limit of blockConcurrencyWhile:

A call to blockConcurrencyWhile() in a Durable Object waited for too long. The call was canceled and the Durable Object was reset.

Expected behavior
I'm not sure how to work around this problem; it looks like removing blockConcurrencyWhile might help, but I'm not sure.

Version:
We are using a old version 0.0.76, but it also happens when upgrading to latest version 0.2.17.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions