-
My use case is to have free users and paid users for AI image generation service and I want paid users to frontrun free users when they enqueue their jobs. I'm not super sure exactly about which data structure or algorithm I need but roughly I need to be able to rearrange the order of jobs based on user tier and their usage frequency somehow. Paid users will enjoy fast AI image generation and free users will not. Users on the same tier that use the service more often than others also should be deprioritized. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can read our docs here: https://www.inngest.com/docs/reference/functions/run-priority. This allows you to initialize function runs with dynamic priorities based off of event data. |
Beta Was this translation helpful? Give feedback.
Yes, you can read our docs here: https://www.inngest.com/docs/reference/functions/run-priority.
This allows you to initialize function runs with dynamic priorities based off of event data.