Skip to content

Commit

Permalink
Add absoluteId() to get the absolute ID of an InngestFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Jan 15, 2025
1 parent 8d1d6d7 commit d600d94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/inngest/src/components/InngestFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ export class InngestFunction<
return [prefix, this.opts.id].filter(Boolean).join("-");
}

/**
* The generated or given ID for this function, prefixed with the app ID. This
* is used for routing invokes and identifying the function across apps.
*/
protected get absoluteId(): string {
return this.id(this.client.id);
}

/**
* The name of this function as it will appear in the Inngest Cloud UI.
*/
Expand Down

0 comments on commit d600d94

Please sign in to comment.