-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow scheduling of job execution in queues #3004
Comments
@michaelbromley I've already done this development locally, I can send a PR to evaluate if you think it's an interesting feature for Vendure. |
Hi, you are welcome to open a PR (you can mark as a draft if you like) so I can review your implementation. |
What I think any scheduled execution should also include is a "last cookie counts" style functionality by default. If the same job is created 10 times with the same job signature any job that didn't run yet except the last one should be dropped. |
@dfernandesbsolus could you provide the PR and link it to this issue? |
To delay the execution of a job I would rather opt for the implementation approach of Symfony. They have introduced something like stamps: https://symfony.com/doc/current/messenger.html#envelopes-stamps |
Is your feature request related to a problem? Please describe.
Sometimes it may be necessary to define an execution date or a delay (in the case of Redis) for executing a job, for example we can allow the publish or unpublish a product automatically, it is not ideal to create a cron that will do a findAll every minute.
Describe the solution you'd like
Example of adding a job
Describe alternatives you've considered
N/A
Additional context
This process can be used in several situations and in several strategies, such as Sql, in memory, redis (delay), Rabbit MQ.
The text was updated successfully, but these errors were encountered: