bk-plugin-framework 2.2.13__tar.gz → 2.3.0__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.
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/PKG-INFO +3 -4
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/__version__.py +1 -1
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/celery/tasks.py +2 -2
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/celery/tasks.py +3 -3
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/pyproject.toml +3 -3
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/constants.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/envs.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/hub/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/api.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/authentication.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/decorators.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/plugin.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/metrics.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/api.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/apps.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/celery/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/celery/queues.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callbacker.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/executor.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/admin.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/apps.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/log.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/migrations/0001_initial.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/models.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/admin.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/apps.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/celery/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/celery/beat.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/celery/queues.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/0001_initial.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/0002_schedule_finish_at.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/0003_auto_20210830_1945.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/0004_schedule_scheduling.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/0005_schedule_err.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/models.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/schedule/utils.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/admin.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/callback.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/detail.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/invoke.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/logs.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/meta.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/permissions.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/plugin_api_dispatch.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/schedule.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/api/serializers/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/apps.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/commands/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/commands/data/api-definition.yml +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/commands/data/api-resources.yml +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/commands/data/api-strategy-cors.yml +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/management/commands/sync_plugin_apigw.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/middlewares.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/bpf_service/urls.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/debug_panel/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/debug_panel/management/commands/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/debug_panel/management/commands/rundebugserver.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/debug_panel/migrations/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/debug_panel/views.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/__init__.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/local.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/log.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/module_load.py +0 -0
- {bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/validations.py +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bk-plugin-framework
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: bk plugin python framework
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Your Name
|
|
7
7
|
Author-email: you@example.com
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.8.0,<4.0.0
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.8
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -16,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
17
|
Requires-Dist: apigw-manager[extra] (>=1.0.6,<4)
|
|
19
|
-
Requires-Dist: bk-plugin-runtime (==2.0
|
|
18
|
+
Requires-Dist: bk-plugin-runtime (==2.1.0)
|
|
20
19
|
Requires-Dist: jsonschema (>=2.5.0,<5.0.0)
|
|
21
20
|
Requires-Dist: pydantic (>=1.0,<3)
|
|
22
21
|
Requires-Dist: werkzeug (>=2.0.0,<4.0)
|
|
@@ -14,7 +14,7 @@ import logging
|
|
|
14
14
|
import random
|
|
15
15
|
import time
|
|
16
16
|
|
|
17
|
-
from celery import
|
|
17
|
+
from celery import shared_task, current_app
|
|
18
18
|
|
|
19
19
|
from bk_plugin_framework.kit import State
|
|
20
20
|
from bk_plugin_framework.metrics import BK_PLUGIN_CALLBACK_EXCEPTION_COUNT, HOSTNAME, BK_PLUGIN_CALLBACK_TIME
|
|
@@ -35,7 +35,7 @@ def _set_schedule_state(trace_id: str, state: State):
|
|
|
35
35
|
logger.exception("[execute] set schedule state error")
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
@
|
|
38
|
+
@shared_task(ignore_result=True)
|
|
39
39
|
def callback(trace_id: str, callback_id: str, callback_data: str):
|
|
40
40
|
with get_schedule_lock(trace_id) as lock:
|
|
41
41
|
if not lock.locked:
|
|
@@ -12,7 +12,7 @@ specific language governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
import logging
|
|
14
14
|
|
|
15
|
-
from celery import
|
|
15
|
+
from celery import shared_task
|
|
16
16
|
|
|
17
17
|
from bk_plugin_framework.kit import State
|
|
18
18
|
from bk_plugin_framework.utils import local
|
|
@@ -31,7 +31,7 @@ def _set_schedule_state(trace_id: str, state: State):
|
|
|
31
31
|
logger.exception("[execute] set schedule state error")
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
@
|
|
34
|
+
@shared_task(ignore_result=True)
|
|
35
35
|
def schedule(trace_id: str):
|
|
36
36
|
local.set_trace_id(trace_id)
|
|
37
37
|
|
|
@@ -56,7 +56,7 @@ def schedule(trace_id: str):
|
|
|
56
56
|
_set_schedule_state(trace_id=trace_id, state=State.FAIL)
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
@
|
|
59
|
+
@shared_task(ignore_result=True)
|
|
60
60
|
def delete_expired_schedule():
|
|
61
61
|
logger.info("[delete_expired_schedule] start to delete expire schedule")
|
|
62
62
|
rows = Schedule.objects.delete_expired_schedule(settings.SCHEDULE_PERSISTENT_DAYS)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bk-plugin-framework"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.3.0"
|
|
4
4
|
description = "bk plugin python framework"
|
|
5
5
|
authors = ["Your Name <you@example.com>"]
|
|
6
6
|
license = "MIT"
|
|
7
7
|
|
|
8
8
|
[tool.poetry.dependencies]
|
|
9
|
-
python = "^3.
|
|
9
|
+
python = "^3.8.0,<4.0"
|
|
10
10
|
pydantic = ">=1.0,<3"
|
|
11
11
|
werkzeug = ">=2.0.0, <4.0"
|
|
12
12
|
apigw-manager = {version = ">=1.0.6, <4", extras = ["extra"]}
|
|
13
|
-
bk-plugin-runtime = "2.0
|
|
13
|
+
bk-plugin-runtime = "2.1.0"
|
|
14
14
|
jsonschema = ">=2.5.0,<5.0.0"
|
|
15
15
|
|
|
16
16
|
[tool.poetry.dev-dependencies]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/hub/__init__.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/authentication.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/kit/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callback/api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/callbacker.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/executor.py
RENAMED
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/admin.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/apps.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/runtime/loghub/log.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/services/__init__.py
RENAMED
|
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
|
|
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
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/module_load.py
RENAMED
|
File without changes
|
{bk_plugin_framework-2.2.13 → bk_plugin_framework-2.3.0}/bk_plugin_framework/utils/validations.py
RENAMED
|
File without changes
|