Skip to content

Commit 34efa10

Browse files
fix: Delay import in miner tasks
Impacts: miner
1 parent 94302e1 commit 34efa10

File tree

1 file changed

+2
-1
lines changed
  • miner/app/src/compute_horde_miner/miner

1 file changed

+2
-1
lines changed

miner/app/src/compute_horde_miner/miner/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from compute_horde_miner.celery import app
1414
from compute_horde_miner.miner import eviction, quasi_axon
15-
from compute_horde_miner.miner.executor_manager import current
1615
from compute_horde_miner.miner.manifest_commitment import commit_manifest_to_subtensor
1716
from compute_horde_miner.miner.models import Validator
1817
from compute_horde_miner.miner.receipts import current_store
@@ -107,6 +106,8 @@ def commit_manifest_to_chain():
107106
Commits manifest to chain.
108107
"""
109108
try:
109+
from compute_horde_miner.miner.executor_manager import current
110+
110111
manifest = async_to_sync(current.executor_manager.get_manifest)()
111112

112113
wallet = settings.BITTENSOR_WALLET()

0 commit comments

Comments
 (0)