@temporalio/activity 1.17.3 → 1.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -3
- package/src/index.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/activity",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.5",
|
|
4
4
|
"description": "Temporal.io SDK Activity sub-package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
"author": "Temporal Technologies Inc. <sdk@temporal.io>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"@temporalio/
|
|
16
|
+
"abort-controller": "^3.0.0",
|
|
17
|
+
"@temporalio/common": "1.17.5",
|
|
18
|
+
"@temporalio/client": "1.17.5"
|
|
18
19
|
},
|
|
19
20
|
"engines": {
|
|
20
21
|
"node": ">= 20.0.0"
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
13
|
* Any function can be used as an Activity as long as its parameters and return value are serializable using a
|
|
14
|
-
* {@link https://docs.temporal.io/
|
|
14
|
+
* {@link https://docs.temporal.io/concepts/what-is-a-data-converter/ | DataConverter}.
|
|
15
15
|
*
|
|
16
16
|
* ### Cancellation
|
|
17
17
|
*
|
|
@@ -283,7 +283,7 @@ export interface Info {
|
|
|
283
283
|
* Activity Context, used to:
|
|
284
284
|
*
|
|
285
285
|
* - Get {@link Info} about the current Activity Execution
|
|
286
|
-
* - Send {@link https://docs.temporal.io/
|
|
286
|
+
* - Send {@link https://docs.temporal.io/concepts/what-is-an-activity-heartbeat | heartbeats}
|
|
287
287
|
* - Get notified of Activity cancellation
|
|
288
288
|
* - Sleep (cancellation-aware)
|
|
289
289
|
*
|
|
@@ -382,7 +382,7 @@ export class Context {
|
|
|
382
382
|
) {}
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* Send a {@link https://docs.temporal.io/
|
|
385
|
+
* Send a {@link https://docs.temporal.io/concepts/what-is-an-activity-heartbeat | heartbeat} from an Activity.
|
|
386
386
|
*
|
|
387
387
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
388
388
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|
|
@@ -498,7 +498,7 @@ export function sleep(ms: Duration): Promise<void> {
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
|
-
* Send a {@link https://docs.temporal.io/
|
|
501
|
+
* Send a {@link https://docs.temporal.io/concepts/what-is-an-activity-heartbeat | heartbeat} from an Activity.
|
|
502
502
|
*
|
|
503
503
|
* If an Activity times out, then during the next retry, the last value of `details` is available at
|
|
504
504
|
* {@link Info.heartbeatDetails}. This acts as a periodic checkpoint mechanism for the progress of an Activity.
|