vendure-ecommerce / vendure

The commerce platform with customization in its DNA.
https://www.vendure.io
Other
5.6k stars 990 forks source link

Add any data to option for JobConfig #3054

Open monrostar opened 1 week ago

monrostar commented 1 week ago

Is your feature request related to a problem? Please describe. I want to be able to fine tune the job. For example to have an interface that can be injected for different queues providers. For example for Bullmq sometimes we need to postpone the execution of a task or for Rabbitmq to be able to pass not only attempts, but also to make the task run as many times as needed until it is done.

Describe the solution you'd like I'd like to extend the interface for interface JobConfig<T extends JobData<T>>

Describe alternatives you've considered At the moment we have to completely copy the plugin and extend it to manually configure queues

michaelbromley commented 6 days ago

Hi, Can you go into a bit more detail how you would like this to look, e.g. a code example?