temporalio / vscode-debugger-extension

Visual Studio Code debugger plugin
https://marketplace.visualstudio.com/items?itemName=temporal-technologies.temporalio
MIT License
19 stars 7 forks source link

[Bug] Error loading history file #43

Closed lorensr closed 1 year ago

lorensr commented 1 year ago
image image

File downloaded from UI: https://www.dropbox.com/s/3j30ypo8w7ajwcd/e79b3473-5234-4046-be33-91c84a0af32a_events.json?dl=0

image

workflow code:

import { condition, defineSignal, proxyActivities, setHandler, sleep } from '@temporalio/workflow';
import type * as activities from './activities';

export const verifySignal = defineSignal<[]>('verify');

const { notifyHumanForVerification, collectFeedback } = proxyActivities<typeof activities>({
  startToCloseTimeout: '1 minute',
});

export async function humanVerificationWorkflow(task: string) {
  let verified = false;

  await notifyHumanForVerification(task);
  setHandler(verifySignal, () => {
    verified = true;
  });

  await condition(() => verified);
  await sleep('1 day');
  await collectFeedback();
}
lorensr commented 1 year ago
image
bergundy commented 1 year ago

Seems like an SDK update should solve this, I'll verify and update if needed.

lorensr commented 1 year ago

Fixed by #44

abhishek-parative commented 1 month ago

Hi I'm experiencing the same exact error running on version 1.0.2 of the extension