Skip to content

Commit

Permalink
Add comments for priority.run function config option
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Oct 16, 2023
1 parent b1e1a3c commit c15db18
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/inngest/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,22 @@ export interface FunctionOptions<
};

/**
* TODO
* Configure how the priority of a function run is decided when multiple
* functions are triggered at the same time.
*
* See the [Priority documentation](https://innge.st/priority) for more
* information.
*/
priority?: {
/**
* TODO
* An expression to use to determine the priority of a function run. The
* expression can return a number between `-600` and `600`, where `600`
* declares that this run should be executed before any others enqueued in
* the last 600 seconds (10 minutes), and `-600` declares that this run
* should be executed after any others enqueued in the last 600 seconds.
*
* See the [Priority documentation](https://innge.st/priority) for more
* information.
*/
run?: string;
};
Expand Down

0 comments on commit c15db18

Please sign in to comment.