We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The default timeout is int: 300
int: 300
See: https://github.com/kapilt/mongoqueue/blob/master/mongoqueue/mongoqueue.py#L34
It is used to find locked jobs which have expired here: https://github.com/kapilt/mongoqueue/blob/master/mongoqueue/mongoqueue.py#L66
the use of one unnamed parameter to timedelta means it takes the argument as 'days'
timedelta
The only way to get sub-day timeouts is to use day fraction.
See some examples here:
>>> from datetime import datetime, timedelta >>> datetime.now() datetime.datetime(2019, 6, 4, 17, 54, 52, 339957) >>> datetime.now() - timedelta(300) # the default datetime.datetime(2018, 8, 8, 17, 55, 4, 593967) >>> datetime.now() - timedelta(1) # 1 day datetime.datetime(2019, 6, 3, 17, 55, 12, 929884) >>> datetime.now() - timedelta(0.04166667) # 1 hour as decimal days datetime.datetime(2019, 6, 4, 16, 55, 39, 443801)
Please consider defaulting to a lower time-base like hours.
I had assumed it was minutes. (5hrs)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The default timeout is
int: 300
See: https://github.com/kapilt/mongoqueue/blob/master/mongoqueue/mongoqueue.py#L34
It is used to find locked jobs which have expired here:
https://github.com/kapilt/mongoqueue/blob/master/mongoqueue/mongoqueue.py#L66
the use of one unnamed parameter to
timedelta
means it takes the argument as 'days'The only way to get sub-day timeouts is to use day fraction.
See some examples here:
Please consider defaulting to a lower time-base like hours.
I had assumed it was minutes. (5hrs)
The text was updated successfully, but these errors were encountered: