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

Method getEvent

packages/trigger-sdk/src/io.ts:782–799  ·  view source on GitHub ↗
(cacheKey: string | any[], id: string)

Source from the content-addressed store, hash-verified

780 }
781
782 async getEvent(cacheKey: string | any[], id: string) {
783 return await this.runTask(
784 cacheKey,
785 async (task) => {
786 return await this._triggerClient.getEvent(id);
787 },
788 {
789 name: "getEvent",
790 params: { id },
791 properties: [
792 {
793 label: "id",
794 text: id,
795 },
796 ],
797 }
798 );
799 }
800
801 /** `io.cancelEvent()` allows you to cancel an event that was previously sent with `io.sendEvent()`. This will prevent any Jobs from running that are listening for that event if the event was sent with a delay
802 * @param cacheKey

Callers 2

events.tsFile · 0.45
sendReactHookEventFunction · 0.45

Calls 1

runTaskMethod · 0.95

Tested by

no test coverage detected