Skip to content

Commit

Permalink
feat: 依赖包升级(closed #2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalice-1831 committed Dec 18, 2024
1 parent 827ed1a commit 99c74e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
("node_man", "0083_subscription_operate_info"),
("node_man", "0084_update_isp_and_accesspoint_regionid_cityid"),
]

operations = [
Expand Down
4 changes: 2 additions & 2 deletions apps/node_man/periodic_tasks/sync_all_isp_to_cmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import time
from typing import Any, Dict, List

from celery.task import periodic_task
from celery import current_app

from apps.component.esbclient import client_v2
from apps.exceptions import ComponentCallError
Expand Down Expand Up @@ -47,7 +47,7 @@ def sync_all_isp_to_cmdb(task_id):
logger.info(f"{task_id} | Sync cloud isp info task complete.")


@periodic_task(
@current_app.task(
queue="default",
options={"queue": "default"},
run_every=constants.SYNC_ISP_TO_CMDB_INTERVAL,
Expand Down

0 comments on commit 99c74e4

Please sign in to comment.