p1-taskqueue 0.1.16__tar.gz → 0.1.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of p1-taskqueue might be problematic. Click here for more details.
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/PKG-INFO +1 -1
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/pyproject.toml +1 -1
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/p1_taskqueue.egg-info/PKG-INFO +1 -1
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/celery_app.py +1 -1
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/cmanager.py +1 -1
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/tests/test_cmanager.py +5 -5
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/README.md +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/setup.cfg +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/p1_taskqueue.egg-info/SOURCES.txt +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/p1_taskqueue.egg-info/dependency_links.txt +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/p1_taskqueue.egg-info/requires.txt +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/p1_taskqueue.egg-info/top_level.txt +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/__init__.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/libs/__init__.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/libs/helper_test.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/src/taskqueue/slack_notifier.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/tests/test_celery_app.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/tests/test_helper_test_functions.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/tests/test_return_values.py +0 -0
- {p1_taskqueue-0.1.16 → p1_taskqueue-0.1.17}/tests/test_test_utils.py +0 -0
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "p1-taskqueue"
|
|
7
7
|
# DO NOT CHANGE THIS VERSION - it gets automatically replaced by CI/CD with the git tag version
|
|
8
|
-
version = "0.1.
|
|
8
|
+
version = "0.1.17"
|
|
9
9
|
description = "A Task Queue Wrapper for Dekoruma Backend"
|
|
10
10
|
authors = [
|
|
11
11
|
{name = "Chalvin", email = "engineering@dekoruma.com"}
|
|
@@ -171,7 +171,7 @@ class CManager:
|
|
|
171
171
|
enqueue_op_type, args, kwargs)
|
|
172
172
|
|
|
173
173
|
use_legacy_executor = queue_options.pop(
|
|
174
|
-
'use_legacy_executor',
|
|
174
|
+
'use_legacy_executor', False)
|
|
175
175
|
|
|
176
176
|
if use_legacy_executor:
|
|
177
177
|
task_name, task_args, task_kwargs = _build_dynamic_task_call(
|
|
@@ -365,7 +365,7 @@ class TestCManager:
|
|
|
365
365
|
|
|
366
366
|
mock_send_task.assert_called_once()
|
|
367
367
|
call_args = mock_send_task.call_args
|
|
368
|
-
assert call_args[0][0] == "taskqueue.cmanager.
|
|
368
|
+
assert call_args[0][0] == "taskqueue.cmanager.callable_executor"
|
|
369
369
|
|
|
370
370
|
@patch('taskqueue.cmanager.logger')
|
|
371
371
|
@patch.object(CManager, '_send_task')
|
|
@@ -376,7 +376,7 @@ class TestCManager:
|
|
|
376
376
|
|
|
377
377
|
mock_send_task.assert_called_once()
|
|
378
378
|
call_args = mock_send_task.call_args
|
|
379
|
-
assert call_args[0][0] == "taskqueue.cmanager.
|
|
379
|
+
assert call_args[0][0] == "taskqueue.cmanager.callable_executor"
|
|
380
380
|
|
|
381
381
|
@patch('taskqueue.cmanager.logger')
|
|
382
382
|
@patch.object(CManager, '_send_task')
|
|
@@ -387,7 +387,7 @@ class TestCManager:
|
|
|
387
387
|
|
|
388
388
|
mock_send_task.assert_called_once()
|
|
389
389
|
call_args = mock_send_task.call_args
|
|
390
|
-
assert call_args[0][0] == "taskqueue.cmanager.
|
|
390
|
+
assert call_args[0][0] == "taskqueue.cmanager.callable_executor"
|
|
391
391
|
|
|
392
392
|
def test_cmanager_enqueue_given_no_args_expect_raise_value_error(self):
|
|
393
393
|
cm = CManager()
|
|
@@ -904,13 +904,13 @@ class TestBuildCallableTaskCall:
|
|
|
904
904
|
|
|
905
905
|
@patch('taskqueue.cmanager.logger')
|
|
906
906
|
@patch.object(CManager, '_send_task')
|
|
907
|
-
def
|
|
907
|
+
def test_cmanager_enqueue_given_no_use_legacy_executor_expect_default_to_false(self, mock_send_task: Any, mock_logger: Any) -> None:
|
|
908
908
|
cm = CManager()
|
|
909
909
|
cm.enqueue(test_function, 1, 2)
|
|
910
910
|
|
|
911
911
|
mock_send_task.assert_called_once()
|
|
912
912
|
call_args = mock_send_task.call_args
|
|
913
|
-
assert call_args[0][0] == "taskqueue.cmanager.
|
|
913
|
+
assert call_args[0][0] == "taskqueue.cmanager.callable_executor"
|
|
914
914
|
|
|
915
915
|
@patch('taskqueue.cmanager.logger')
|
|
916
916
|
@patch.object(CManager, '_send_task')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|