These calls don't actually update the `metadata` of the root run. The same calls work not inside a class. ```ts 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 <sub>[TRI-5140](https://linear.app/triggerdotdev/issue/TRI-5140/the-metadataset-function-doesnt-work-when-used-inside-a-js-class)</sub>