Browse Source

self._set_state(self.STATE_FAILED)

skyfffire 2 months ago
parent
commit
7316244f70
1 changed files with 2 additions and 0 deletions
  1. 2 0
      s_erc20_to_mexc.py

+ 2 - 0
s_erc20_to_mexc.py

@@ -311,6 +311,8 @@ class ArbitrageProcess:
                 logger.error(msg)
                 add_state_flow_entry(self.process_item, self.current_state, msg, "fail")
 
+                self._set_state(self.STATE_FAILED)
+
                 return
 
             # 查询交易所订单状态