Skip to content

寻找协作任务不执行 #1979

Open
Open

Description

@fjvzdhge

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经阅读了文档中的 常见问题(FAQ)
  • 这个问题出现了至少三次,不是偶发的
  • 我使用 OAS 的 dev 分支

描述你的问题

寻找协作任务勾选和配置账号信息后打开调度器没有出现在队列里,不执行

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

预期行为

No response

相关 Logs


报错时游戏的截图/别的截图

Image

还有别的吗?

No response

Activity

  1. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    感谢反馈。当前信息不足,暂时无法可靠定位“寻找协作任务不执行”的原因,请补充以下内容:

    • 实际可复现的完整步骤:包括 OAS 版本/提交、任务配置、账号配置方式,以及调度器中应出现但未出现的具体表现。
    • 相关 Logs:请粘贴运行该任务时的完整文本日志,尤其是启动调度器、加载任务和报错附近的内容;不要只提供截图。
    • 若方便,请补充任务配置截图或导出的相关配置,并说明是否所有账号都复现。

    目前已知:你勾选了 dev 分支,描述和截图已提供,但日志为空,现有复现步骤仍为模板占位文本,因此无法形成足够的代码证据链。补充信息后请Close issue 然后Reopen issue重新触发机器人运行。

    Warning

    Firewall blocked 1 domain

    The following domain was blocked by the firewall during workflow execution:

    • ab.chatgpt.com

    To allow these domains, add them to the network.allowed list in your workflow frontmatter:

    network:
      allowed:
        - defaults
        - "ab.chatgpt.com"

    See Network Configuration for more information.

    Generated by Issue Handle Bug for #1979 · codex · gpt56 · 3.85 AIC · ⌖ 2.84 AIC · ⊞ 14.3K · ◷

  2. fjvzdhge commented on Oct 29, 2026

    @fjvzdhge
    Author
    Image
  3. fjvzdhge commented on Oct 29, 2026

    @fjvzdhge
    Author

    ════════════════════════════════════════════════════════════════════════════════
    ──────────────────────────────────── START ─────────────────────────────────────
    ════════════════════════════════════════════════════════════════════════════════
    INFO | 13:37:30.222 | Log cleanup finished
    INFO | 13:37:30.223 | Start scheduler loop: oas3
    INFO | 13:37:30.228 | auto save config
    INFO | 13:37:30.243 | 显示窗口: MuMu安卓设备-2
    CRITICAL | 13:37:30.251 | No task waiting or pending
    CRITICAL | 13:37:30.252 | Please enable at least one task
    ERROR | 13:37:30.253 | Run script oas3 error
    ┌───────────────── Traceback (most recent call last) ─────────────────┐
    │ C:\PCGame\OnmyojiAutoScript-easy-install\module\server\script_proce │
    │ ss.py:152 in func │
    │ │
    │ 149 │ │ from script import Script │
    │ 150 │ │ script = Script(config_name=config) │
    │ 151 │ │ script.state_queue = state_queue │
    │ > 152 │ │ script.loop() │
    │ 153 │ except SystemExit as e: │
    │ 154 │ │ logger.info(f'Script {config} process exit') │
    │ 155 │ │ logger.error(f'Error: {e}') │
    │ │
    │ ┌──────────────────────────── locals ─────────────────────────────┐ │
    │ │ config = 'oas3' │ │
    │ │ e = RequestHumanTakeover() │ │
    │ │ log_pipe_in = <multiprocessing.connection.PipeConnection │ │
    │ │ object at 0x00000278EA9DD030> │ │
    │ │ Script = <class 'script.Script'> │ │
    │ │ script = <script.Script object at 0x00000278EA9DD1B0> │ │
    │ │ signal_handler = <function func..signal_handler at │ │
    │ │ 0x00000278D19FB130> │ │
    │ │ start_log = <function func..start_log at │ │
    │ │ 0x00000278EA9E9120> │ │
    │ │ state_queue = <multiprocessing.queues.Queue object at │ │
    │ │ 0x00000278D19DF730> │ │
    │ │ time = <module 'time' (built-in)> │ │
    │ └─────────────────────────────────────────────────────────────────┘ │
    │ │
    │ C:\PCGame\OnmyojiAutoScript-easy-install\script.py:669 in loop │
    │ │
    │ 666 │ │ │ # self.config.task_call('Restart') │
    │ 667 │ │ │ │
    │ 668 │ │ │ # Get task │
    │ > 669 │ │ │ task = self.get_next_task() │
    │ 670 │ │ │ # Skip first restart │
    │ 671 │ │ │ if self.is_first_task and task == 'Restart': │
    │ 672 │ │ │ │ logger.info('Skip task Restart at scheduler │
    │ │
    │ ┌──────────────────────────── locals ─────────────────────────────┐ │
    │ │ minimize_by_name = <function minimize_by_name at │ │
    │ │ 0x00000278ECE5B370> │ │
    │ │ self = <script.Script object at │ │
    │ │ 0x00000278EA9DD1B0> │ │
    │ │ show_window_by_name = <function show_window_by_name at │ │
    │ │ 0x00000278ED08BD00> │ │
    │ │ start_day = datetime.date(2026, 10, 29) │ │
    │ │ target_window_name = 'MuMu安卓设备-2' │ │
    │ └─────────────────────────────────────────────────────────────────┘ │
    │ │
    │ C:\PCGame\OnmyojiAutoScript-easy-install\script.py:329 in │
    │ get_next_task │
    │ │
    │ 326 │ │ :return: │
    │ 327 │ │ """ │
    │ 328 │ │ while True: │
    │ > 329 │ │ │ task = self.config.get_next() │
    │ 330 │ │ │ self.config.task = task │
    │ 331 │ │ │ if self.state_queue: │
    │ 332 │ │ │ │ self.state_queue.put({"schedule": self.config │
    │ │
    │ ┌────────────────────── locals ───────────────────────┐ │
    │ │ self = <script.Script object at 0x00000278EA9DD1B0> │ │
    │ └─────────────────────────────────────────────────────┘ │
    │ │
    │ C:\PCGame\OnmyojiAutoScript-easy-install\module\config\config.py:24 │
    │ 2 in get_next │
    │ │
    │ 239 │ │ else: │
    │ 240 │ │ │ logger.critical("No task waiting or pending") │
    │ 241 │ │ │ logger.critical("Please enable at least one task" │
    │ > 242 │ │ │ raise RequestHumanTakeover │
    │ 243 │ │
    │ 244 │ def get_schedule_data(self) -> dict[str, dict]: │
    │ 245 │ │ """ │
    │ │
    │ ┌──────────────────────────── locals ─────────────────────────────┐ │
    │ │ self = <module.config.config.Config object at │ │
    │ │ 0x00000278EA9DD090> │ │
    │ └─────────────────────────────────────────────────────────────────┘ │
    └─────────────────────────────────────────────────────────────────────┘
    RequestHumanTakeover
    ERROR | 13:37:32.795 | Error:

  4. fjvzdhge commented on Oct 29, 2026

    @fjvzdhge
    Author

    qas是最新版本

  5. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    信息补充请求

    目前 Issue 仍未满足 Bug 分析所需的最小信息,因此暂时无法可靠确认根因:

    • “如何复现”仍是模板占位步骤(“前往 ... / 点击 .... / 滑动到 ....”),请替换为可执行的实际步骤;
    • “预期行为”为空,请说明勾选并配置“寻找协作任务”后,调度器应显示什么;
    • 你在评论中补充的日志已经能确认调度器启动时没有待执行任务,但还需要对应的任务配置截图或导出配置,确认任务是否成功保存、绑定了哪个账号以及时间/条件设置;
    • 请补充 OAS 的具体 dev 版本或提交号,并说明是否所有账号都复现。

    当前可以确认的是:日志显示 Config.get_next() 没有找到 waiting/pending task,因此抛出 RequestHumanTakeover;但仅凭现有信息无法判断是“寻找协作任务”未写入调度配置、配置条件未满足,还是账号/任务配置问题。

    补充信息后请Close issue 然后Reopen issue重新触发机器人运行。

    Warning

    Firewall blocked 1 domain

    The following domain was blocked by the firewall during workflow execution:

    • ab.chatgpt.com

    To allow these domains, add them to the network.allowed list in your workflow frontmatter:

    network:
      allowed:
        - defaults
        - "ab.chatgpt.com"

    See Network Configuration for more information.

    Generated by Issue Handle Bug for #1979 · codex · gpt56 · 5.37 AIC · ⌖ 5.32 AIC · ⊞ 14.3K · ◷

  6. runhey commented on Oct 29, 2026

    @runhey
    Owner

    从日志看,程序启动的是 oas3,但调度器没有找到任何启用任务:

    No task waiting or pending
    Please enable at least one task
    

    因此程序在获取任务阶段就抛出 RequestHumanTakeover,尚未进入“寻找协作任务”的执行逻辑。请确认实际运行的 config/oas3.json 中 find_jade.scheduler.enable 是否为 true,以及 GUI 勾选是否保存到了 oas3 配置。账号配置不是这次日志所反映的直接原因。

  7. fjvzdhge commented on Oct 30, 2026

    @fjvzdhge
    Author

    "find_jade": {
    "scheduler": {
    "enable": true,
    "next_run": "2026-04-01 00:00:00",
    "priority": 5,
    "success_interval": "01 00:00:00",
    "failure_interval": "01 00:00:00",
    "server_update": "09:00:00",
    "delay_date": 1,
    "float_time": "00:00:00"
    },
    "find_jade_config": {
    "invite_info_count": 1,
    "sup_account_count": 1
    },
    "invite_info_list_1": {
    "name": "和谐",
    "default_invite_type": "JadeAndFood",
    "invite_history_1": "2023-01-01 00:00:00",
    "invite_history_2": "2023-01-01 00:00:00",
    "invite_history_4": "2023-01-01 00:00:00",
    "invite_history_8": "2023-01-01 00:00:00"
    },
    "sup_account_list_1": {
    "character": "和谐",
    "svr": "循光世",
    "account": "131****3629",
    "account_alias": "",
    "apple_or_android": true,
    "last_complete_time": "2023-01-01 00:00:00"
    }
    },
    勾选了

  8. runhey commented on Oct 31, 2026

    @runhey
    Owner

    添加到调度器里面去了

  9. fjvzdhge commented on Nov 1, 2026

    @fjvzdhge
    Author
  10. fjvzdhge commented on Nov 1, 2026

    @fjvzdhge
    Author
    ════════════════════════════════════════════════════════════════════════════════
    ─────────────────────────────────── FINDJADE ───────────────────────────────────
    ════════════════════════════════════════════════════════════════════════════════
    2026-11-01 13:12:38.560 |      config_model.py:0178 |     INFO | auto save config                                                                               
    2026-11-01 13:12:39.429 |            script.py:0572 |     INFO | module_path: C:\PCGame\ONMYOJ~1\tasks\FindJade\script_task.py, module_name: script_task        
    2026-11-01 13:12:39.436 |      costume_base.py:0108 |     INFO | Current task: FindJade                                                                         
    2026-11-01 13:12:39.439 |      costume_base.py:0134 |     INFO | Switch main costume to costume_main_16 (costume_main_16)                                       
    2026-11-01 13:12:39.442 |      costume_base.py:0198 |     INFO | Switch shikigami theme costume_shikigami_12 (costume_shikigami_12)                             
    2026-11-01 13:12:39.474 |       script_task.py:0020 |     INFO | start 百和谐篇-循光世                                                                          
    2026-11-01 13:12:39.476 |      costume_base.py:0108 |     INFO | Current task: FindJade                                                                         
    2026-11-01 13:12:39.479 |      costume_base.py:0134 |     INFO | Switch main costume to costume_main_16 (costume_main_16)                                       
    2026-11-01 13:12:39.481 |      costume_base.py:0198 |     INFO | Switch shikigami theme costume_shikigami_12 (costume_shikigami_12)                             
    2026-11-01 13:12:39.519 |    switch_account.py:0036 |     INFO | start switchAccount 百和谐篇-循光世                                                            
    2026-11-01 13:12:40.433 |            logger.py:0320 |     INFO | [UI] page_main                                                                                 
    2026-11-01 13:12:40.435 |         exit_game.py:0009 |     INFO | start game exit                                                                                
    2026-11-01 13:12:41.433 |           control.py:0075 |     INFO | Click (  66,   77) @ sa_eg_profile_photo                                                       
    2026-11-01 13:12:43.440 |           control.py:0075 |     INFO | Click ( 235,  472) @ SA_USER_CENTER                                                            
    2026-11-01 13:12:45.438 |           control.py:0075 |     INFO | Click ( 976,  206) @ SA_SWITCH_ACCOUNT_BTN                                                     
    2026-11-01 13:12:48.449 |            logger.py:0320 |     INFO | [SA_ACCOUNT_ACCOUNT_SELECTED 0.008s] [131****3629 ]                                            
    2026-11-01 13:12:48.452 |     login_account.py:0162 |     INFO | start selectAccount                                                                            
    2026-11-01 13:12:49.449 |            logger.py:0320 |     INFO | [SA_ACCOUNT_ACCOUNT_SELECTED 0.009s] [131****3629 ]                                            
    2026-11-01 13:12:50.443 |           control.py:0075 |     INFO | Click ( 860,  333) @ SA_ACCOUNT_DROP_DOWN_CLOSED                                               
    2026-11-01 13:12:52.613 |            logger.py:0320 |     INFO | [SA_ACCOUNT_ACCOUNT_LIST 0.170s] ['常用', '131****3629', '。上次登录刚刚', '添加新账号',       
    '画删除记录', '进入游戏']                                                                                                                                       
    2026-11-01 13:12:53.622 |           control.py:0075 |     INFO | Click ( 529,  312) @ SA_ACCOUNT_ACCOUNT_LIST                                                   
    2026-11-01 13:12:53.779 |     login_account.py:0195 |     INFO | account [ 131****3629 ] found                                                                  
    2026-11-01 13:12:54.797 |           control.py:0075 |     INFO | Click ( 641,  439) @ SA_ACCOUNT_LOGIN_BTN                                                      
    2026-11-01 13:13:54.862 |            device.py:0179 |  WARNING | Wait too long                                                                                  
    2026-11-01 13:13:54.865 |            device.py:0180 |  WARNING | Waiting for set()                                                                              
    2026-11-01 13:13:54.951 |            logger.py:0320 |     INFO | [Package_name] com.netease.onmyoji                                                             
    2026-11-01 13:13:54.953 |            logger.py:0354 |    ERROR | GameStuckError: Wait too long                                                                  
    2026-11-01 13:13:54.955 |            script.py:0114 |  WARNING | Saving error: ./log/error/1793510034955                                                        
    2026-11-01 13:13:54.957 |            script.py:0115 |     INFO | 保存详细错误的日志和截图到路径:                                                                
    2026-11-01 13:13:54.959 |            script.py:0116 |     INFO | C:\PCGame\ONMYOJ~1\log\error\1793510034955                                                     
    
    
  11. fjvzdhge commented on Nov 1, 2026

    @fjvzdhge
    Author

    成功执行了,切换识别登录账号都没问题,但是切换识别和登录区服没执行

  12. Hurry2 commented on Nov 1, 2026

    @Hurry2
    Contributor

    18. 成功执行了,切换识别登录账号都没问题,但是切换识别和登录区服没执行

    登录界面有过改动,自己修吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions