Commit Graph

6 Commits

Author SHA1 Message Date
Adrian Sadłocha caa4efc35b
Extract `Job.get_call_string` logic to `utils.get_call_string` (#1499)
* Extract `Job.get_call_string` logic to `utils.get_call_string`

* Remove an outdaded comment

* Move `truncate_long_string` to `utils`

* Remove `truncate` parameter in `get_call_string`

* Add a test for `get_call_string`

* Move `truncate_long_string` to module's top level

* Add a test case for `truncate_long_string` suite
2021-06-23 21:12:39 +07:00
AxeOfMen 709043989a
clean_worker_registry cleans in batches to prevent submitting too muc… (#1390)
* clean_worker_registry cleans in batches to prevent submitting too much data to redis at once when there are a large number of invalid keys

* Address code review comments

Rename MAX_REMOVABLE_KEYS to MAX_KEYS

* Fix tests

Co-authored-by: Joel Harris <combolations@gmail.com>
2021-01-09 10:12:51 +07:00
Selwin Ong 39fb709c10
get_redis_server_version() should handle 4 digit version numbers (#1322) 2020-08-16 11:23:29 +07:00
Samuel Colvin 260fd84f51 add milliseconds into timestamps, fix #721 2017-09-09 20:28:53 +01:00
Theo ee64114e6e Fixed #870 Improved test coverage for connections.py and utils.py 2017-08-31 12:23:17 +01:00
luojiebin cd529d0ce1 Fixed issue#72 (#818)
* Added a custom exception for timeout transfer

* Added a util to transfer timeout to a united format

* Transfer timeout format when creating a queue or enqueue jobs

* Fixed typos

* Fixed bug in transfer_timeout function

* Added test for function transfer_timeout

* Updated transfer_timeout to allow uppercase unit

* Renamed function in utils
2017-04-28 10:13:42 +07:00