Skip to content

Commit 1e82cbf

Browse files
authored
fix: [Trigger] Timer task triggers application unable to parse prompt word template (#4771)
1 parent 7d1da7c commit 1e82cbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/ops/celery/signal_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
logger = logging.getLogger(__file__)
1818
safe_str = lambda x: x
1919

20+
2021
def init_scheduler():
2122
from common import job
22-
23+
from common.init import init_template
2324
job.run()
24-
25+
init_template.run()
2526
try:
2627
from xpack import job as xpack_job
2728

2829
xpack_job.run()
2930
except ImportError:
30-
pass
31-
31+
pass
3232

3333

3434
@worker_ready.connect

0 commit comments

Comments
 (0)