修復市場情報 writer CLI lazy import
All checks were successful
CD Pipeline / deploy (push) Successful in 1m22s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m22s
This commit is contained in:
@@ -19,11 +19,11 @@ if str(REPO_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(REPO_ROOT))
|
||||
|
||||
with contextlib.redirect_stdout(sys.stderr):
|
||||
from services.market_intel import MarketIntelService # noqa: E402
|
||||
from services.market_intel.candidate_queue_review_decision_writer_cli import ( # noqa: E402
|
||||
APPROVAL_ENV_VAR,
|
||||
build_candidate_queue_review_decision_writer_cli_plan,
|
||||
)
|
||||
from services.market_intel.phase import MARKET_INTEL_PHASE # noqa: E402
|
||||
|
||||
|
||||
def parse_args(argv=None):
|
||||
@@ -71,7 +71,6 @@ def _load_transaction_preview(path):
|
||||
|
||||
def main(argv=None):
|
||||
args = parse_args(argv)
|
||||
service = MarketIntelService()
|
||||
plan = build_candidate_queue_review_decision_writer_cli_plan(
|
||||
transaction_preview=_load_transaction_preview(args.transaction_json),
|
||||
execute_requested=args.execute,
|
||||
@@ -81,7 +80,7 @@ def main(argv=None):
|
||||
backup_verified=args.backup_verified,
|
||||
review_inventory_smoke_passed=args.review_inventory_smoke_passed,
|
||||
)
|
||||
plan["phase"] = service.phase
|
||||
plan["phase"] = MARKET_INTEL_PHASE
|
||||
print(json.dumps(plan, ensure_ascii=False, indent=2, sort_keys=True))
|
||||
return int(plan.get("exit_code", 2))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user