You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/context.mdx
+45-7Lines changed: 45 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,11 @@ title: "Context"
3
3
description: "Get the context of a task run."
4
4
---
5
5
6
-
Context (`ctx`) is a way to get information about a run.
6
+
Context (`ctx`) is a way to get information about a run.
7
7
8
8
<Note>
9
-
The context object does not change whilst your code is executing. This means values like `ctx.run.durationMs` will be fixed at the moment the `run()` function is called.
9
+
The context object does not change whilst your code is executing. This means values like
10
+
`ctx.run.durationMs` will be fixed at the moment the `run()` function is called.
10
11
</Note>
11
12
12
13
<RequestExample>
@@ -17,7 +18,6 @@ import { task } from "@trigger.dev/sdk/v3";
0 commit comments