Closed
Description
These calls don't actually update the metadata
of the root run. The same calls work not inside a class.
import { metadata } from '@trigger.dev/sdk/v3';
export class DummyClass {
async doSomethingAsync() {
metadata.root.set('dummy1-async', 'foo');
metadata.root.set('dummy2-async', 'bar');
metadata.root.set('dummy3-async', 123);
}
doSomethingSync() {
metadata.root.set('dummy4-sync', 'baz');
metadata.root.set('dummy5-sync', 456);
}
}
There's a reproduction repo here: https://github.com/Yoshify/trigger-repro-app/blob/main/src/trigger/example.ts
Thanks to @Yoshify for this repro
Metadata
Metadata
Assignees
Labels
No labels