p1-taskqueue 0.1.13__py3-none-any.whl → 0.1.14__py3-none-any.whl
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.13.dist-info → p1_taskqueue-0.1.14.dist-info}/METADATA +1 -1
- {p1_taskqueue-0.1.13.dist-info → p1_taskqueue-0.1.14.dist-info}/RECORD +5 -5
- taskqueue/libs/helper_test.py +26 -0
- {p1_taskqueue-0.1.13.dist-info → p1_taskqueue-0.1.14.dist-info}/WHEEL +0 -0
- {p1_taskqueue-0.1.13.dist-info → p1_taskqueue-0.1.14.dist-info}/top_level.txt +0 -0
|
@@ -3,8 +3,8 @@ taskqueue/celery_app.py,sha256=rLIYRBBgYaQiXEqz-zCntvS8xU4eFZ9YuhJBfIye9E0,3931
|
|
|
3
3
|
taskqueue/cmanager.py,sha256=9jxcTsWOpzexV3SkRhlY-PkhrobEdMuQVm6tWVVzgTs,16260
|
|
4
4
|
taskqueue/slack_notifier.py,sha256=ZvTbWa1XXHUiciYF14_SH5af0BvGoPCBQohPtxx4FgU,1419
|
|
5
5
|
taskqueue/libs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
taskqueue/libs/helper_test.py,sha256=
|
|
7
|
-
p1_taskqueue-0.1.
|
|
8
|
-
p1_taskqueue-0.1.
|
|
9
|
-
p1_taskqueue-0.1.
|
|
10
|
-
p1_taskqueue-0.1.
|
|
6
|
+
taskqueue/libs/helper_test.py,sha256=3f7RoYEDBIpLHG1YY3eQ_RqZvkm4Er3FDEvFJeoAc8o,9572
|
|
7
|
+
p1_taskqueue-0.1.14.dist-info/METADATA,sha256=BsbOsaQJo1_JXzhgSuH5M3Z1NipXSlvAsHuHELdry0o,1597
|
|
8
|
+
p1_taskqueue-0.1.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
p1_taskqueue-0.1.14.dist-info/top_level.txt,sha256=hA3SM1ik2K8iPqtlt_-_nJ4TAePwHPN3vsOc4EiynqU,10
|
|
10
|
+
p1_taskqueue-0.1.14.dist-info/RECORD,,
|
taskqueue/libs/helper_test.py
CHANGED
|
@@ -70,6 +70,19 @@ def celery_worker_burst(include_func_names: List[str], channel: str = "default")
|
|
|
70
70
|
method_name = task_kwargs.get('method_name', '')
|
|
71
71
|
if module_path and class_name and method_name:
|
|
72
72
|
full_func_name = f"{module_path}.{class_name}.{method_name}"
|
|
73
|
+
elif task_name.endswith("callable_executor"):
|
|
74
|
+
callable_obj = task_kwargs.get('callable_obj')
|
|
75
|
+
if callable_obj:
|
|
76
|
+
module_path = getattr(
|
|
77
|
+
callable_obj, '__module__', '')
|
|
78
|
+
func_name = getattr(
|
|
79
|
+
callable_obj, '__name__', '')
|
|
80
|
+
if hasattr(callable_obj, '__self__'):
|
|
81
|
+
class_name = callable_obj.__self__.__class__.__name__
|
|
82
|
+
if module_path and class_name and func_name:
|
|
83
|
+
full_func_name = f"{module_path}.{class_name}.{func_name}"
|
|
84
|
+
elif module_path and func_name:
|
|
85
|
+
full_func_name = f"{module_path}.{func_name}"
|
|
73
86
|
|
|
74
87
|
should_execute = full_func_name in included_set if full_func_name else False
|
|
75
88
|
|
|
@@ -136,6 +149,19 @@ def get_queued_tasks(channel: str = "default"):
|
|
|
136
149
|
method_name = task_kwargs.get('method_name', '')
|
|
137
150
|
if module_path and class_name and method_name:
|
|
138
151
|
full_func_name = f"{module_path}.{class_name}.{method_name}"
|
|
152
|
+
elif task_name and task_name.endswith("callable_executor"):
|
|
153
|
+
callable_obj = task_kwargs.get('callable_obj')
|
|
154
|
+
if callable_obj:
|
|
155
|
+
module_path = getattr(
|
|
156
|
+
callable_obj, '__module__', '')
|
|
157
|
+
func_name = getattr(
|
|
158
|
+
callable_obj, '__name__', '')
|
|
159
|
+
if hasattr(callable_obj, '__self__'):
|
|
160
|
+
class_name = callable_obj.__self__.__class__.__name__
|
|
161
|
+
if module_path and class_name and func_name:
|
|
162
|
+
full_func_name = f"{module_path}.{class_name}.{func_name}"
|
|
163
|
+
elif module_path and func_name:
|
|
164
|
+
full_func_name = f"{module_path}.{func_name}"
|
|
139
165
|
|
|
140
166
|
queued_tasks.append({
|
|
141
167
|
'task_name': task_name,
|
|
File without changes
|
|
File without changes
|