MCPcopy
hub / github.com/triggerdotdev/trigger.dev / attach

Method attach

packages/trigger-sdk/src/triggerClient.ts:745–749  ·  view source on GitHub ↗
(job: Job<Trigger<any>, any>)

Source from the content-addressed store, hash-verified

743 }
744
745 attach(job: Job<Trigger<any>, any>): void {
746 this.#registeredJobs[job.id] = job;
747 job.trigger.attachToJob(this, job);
748 job.client = this;
749 }
750
751 attachDynamicTrigger(trigger: DynamicTrigger<any, any>): void {
752 this.#registeredDynamicTriggers[trigger.id] = trigger;

Callers 10

defineJobMethod · 0.95
useDevFunction · 0.80
constructorMethod · 0.80
registerWorkerMethod · 0.80
attachToClientMethod · 0.80
server.tsFile · 0.80

Calls 1

attachToJobMethod · 0.65

Tested by

no test coverage detected