(task_id, keyword, scheduler_id)
| 309 | |
| 310 | # Github 监控任务 |
| 311 | def github_task_monitor(task_id, keyword, scheduler_id): |
| 312 | task = GithubTaskMonitor(task_id=task_id, |
| 313 | keyword=keyword, scheduler_id=scheduler_id) |
| 314 | try: |
| 315 | task.run() |
| 316 | except Exception as e: |
| 317 | logger.exception(e) |
| 318 | |
| 319 | task.update_status(TaskStatus.ERROR) |
| 320 | task.set_end_time() |
nothing calls this directly
no test coverage detected