Skip to content
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

add support to delay a job and enqueue it N seconds later #211

Open
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

orlandobcrra
Copy link
Contributor

@orlandobcrra orlandobcrra commented Mar 24, 2019

add support to delay a job and enqueue it N seconds later.
those jobs are going to have the delayed status.
e.g: delay a job 1 hour.

queue_job(main_task_path, params, delay=3600)

@orlandobcrra
Copy link
Contributor Author

Hi @maelorn @sylvinus, please if you could take a look at this PR when you get a chance. thanks.

@maelorn
Copy link
Contributor

maelorn commented Apr 21, 2019

Hello,

Sorry for the delay. Can you tell us a bit more about the specific use case where you would need this ? Maybe it is something we can already handle right now. Thanks.

@orlandobcrra
Copy link
Contributor Author

Hello,

For example if we need to send an email 1 hour later from a given action:
Endpoint A is called on our API and we need to send an email with some info we got from this process but not right away, we need to send the email N minutes later.

@maelorn
Copy link
Contributor

maelorn commented Apr 22, 2019

Allright, we don't indeed have anything in that regard. It seems fine to me. Could you just add a small test validating the wanted behaviour please ?

Darking360 and others added 25 commits May 6, 2019 11:41
* Sentry cleanup

* Improve exceptions message

* Improve AbortInterrupt, MaxRetriesInterrupt and MaxConcurrencyInterrupt
* Update psutil to 5.8.0

* MRQ Custom 0.9.28
…then raise exception. (#9)

Thus, the actual worker performing the execution of this task can use its own error handling. E.g. Lambda function.
…ew version of MRQ (#12)

* Remove print line
* Update readme.md
* Up version
A3S-2753: Updated redis to 4.5.5 version and new MRQ-custom version
* A3S-2753: Fixed redis connection
* A3S-2753: Fixed redis connection
* A3S-2753: Fixed ssl_cert_reqs attribute
* A3S-2753: Improved fix ssl_cert_reqs attribute
* A3S-2793: Updated mrq-custom to version 0.9.34.1
A3s 843 update pymongo to support python 3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants