Skip to content

Commit b67a3c6

Browse files
committed
caution
1 parent 9635010 commit b67a3c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/content/docs/agents/examples/schedule-tasks.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@ this.cancelSchedule(task.id);
6060

6161
</TypeScriptExample>
6262

63-
Calling `await this.schedule` returns a `Schedule`, which includes the task's randomly generated `id`. You can use this `id` to retrieve or cancel the task in the future.
63+
:::caution
6464

6565
Tasks that set a callback for a method that does not exist will fail silently.
6666

67+
:::
68+
69+
Calling `await this.schedule` returns a `Schedule`, which includes the task's randomly generated `id`. You can use this `id` to retrieve or cancel the task in the future. It also provides a `type` property that indicates the type of schedule - e.g. one of `"scheduled" | "delayed" | "cron"`.
70+
6771
:::note[Maximum scheduled tasks]
6872

6973
Each task is mapped to a row in the Agent's underlying [SQLite database](/sqlite-in-durable-objects/), which means that each task can be up to 2MB in size. The maximum number of tasks must be `(task_size * tasks) + all_other_state < maximum_database_size` (currently 1GB per Agent).

0 commit comments

Comments
 (0)