Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfbc5a9 commit 0a831f7Copy full SHA for 0a831f7
packages/worker/src/worker.ts
@@ -638,7 +638,20 @@ export class Worker<T extends WorkerSpec = DefaultWorkerSpec> {
638
};
639
break;
640
}
641
- const args = arrayFromPayloads(this.options.dataConverter, task.start?.input);
+ let args: unknown[];
642
+ try {
643
+ args = arrayFromPayloads(this.options.dataConverter, task.start?.input);
644
+ } catch (err) {
645
+ output = {
646
+ type: 'result',
647
+ result: {
648
+ failed: {
649
+ failure: { message: `Failed to parse activity args for activity ${fnName}: ${err.message}` },
650
+ },
651
652
+ };
653
+ break;
654
+ }
655
const headers = new Map(Object.entries(task.start?.headerFields ?? {}));
656
const input = {
657
args,
0 commit comments