taskforcesh / issues

Taskforce.sh issues
6 stars 0 forks source link

Ability to specify TTL per job instead of per queue #87

Closed Jivings closed 2 years ago

Jivings commented 2 years ago

It would be useful if I could provide a different TTL based on job name.

Some of my jobs on a single queue are expected to take longer than others. They need to share a queue because they are rate-limited together.

Jivings commented 2 years ago

Any update on this? :) On Slack I think you said it was something you could get done?

manast commented 2 years ago

What means TTL in this context? should an active job die if it has lived more than a specific TTL?

roggervalf commented 2 years ago

hi @Jivings this feature was merged some time ago, but we were missing to add some docs, now you can reference by checking https://docs.bullmq.io/bullmq-pro/observables/cancelation

Jivings commented 2 years ago

That looks perfect, thanks @roggervalf!