pyxxl icon indicating copy to clipboard operation
pyxxl copied to clipboard

XXL-JOB的Python执行器实现,可以方便的将Python方法注册到XXL-JOB的调度中心上进行管理

Results 11 pyxxl issues
Sort by recently updated
recently updated
newest added

**Problem description** 详细描述你的问题 可以使用uvicorn来启动吗 **Specifications like the version of the project, operating system, or hardware** * XXL-JOB 版本: * pyxxl 版本: * python 版本: * other more:

updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/23.12.1...24.4.2) - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.5.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.5.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.10.1)

**Problem description** xxl-job调度任务成功,但回调时重定向到xxl登录。xxl_client.XXL.callback() 方法尝试从服务器获取JSON数据,但服务器返回了HTML内容(text/html;charset=utf-8),这与预期不符,导致了解析失败。 **Steps to reproduce the problem** ```python config = ExecutorConfig( xxl_admin_baseurl="http://localhost:20052/xxl-job-admin/api/", executor_app_name="ftp-server", executor_host="10.1.1.1", executor_port=9992, access_token='xxl-job', debug=True, ) app = PyxxlRunner(config) @app.register(name="pushProjectBusinessDataToFtp") def test_task(): # you can get...

updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.6.9) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.11.2)

**Problem description** 本地启动django,集成了pyxxl,pyxxl的端口启动成功了,也成功注册到了xxl-job。但是xxl-job调度的时候,pyxxl提示 handler xxx not found

Traceback (most recent call last): File "/opt/module/anaconda/envs/py310_dba/Lib/python3.10/site-packaqes/pyxxl/executor.py", line 233, in _run await self.xxl_client.callback(data.logId, start_time, code=200, msg=result) File "/opt/module/anaconda/envs/py310_dba/lib/python3.10/site-packaqes/pyxxl/xxl_client.py", line 85, in callback await self._post("callback , payload) File "/opt/module/anaconda/envs/py310_dba/lib/python3.10/site-packaqes/pyxxl/xxl_client.py", line 96,...

**Problem description** config = ExecutorConfig( xxl_admin_baseurl="http://xxxx.xxxx:8050/job-admin/", 公司java项目配置的也是这个地址 executor_app_name="python-executor-sample", executor_listen_host="我的ip", 与xxx.xxx 不在同一个网段,但通过本地连接vpn是可以通的 access_token="xxxxtoken", debug=True ) @app.register(name="demoJobHandler") async def test_task(): # you can get task params with "g" g.logger.info("get executor params: %s"...

- [ ] 已经查过常见错误列表仍然无法解决 **Problem description** 当程序连接的XXL-JOB主机不可达的时候,进行ctrl+C终端弹出XXLClientError同时没有关闭client session **Steps to reproduce the problem** ```python import asyncio from pyxxl import ExecutorConfig, PyxxlRunner config = ExecutorConfig( xxl_admin_baseurl="http://localhost:8080/xxl-job-admin/api/", executor_app_name="xxl-job-executor-sample", # http_retry_times=3, # graceful_close=True,...

**Problem description** 详细描述你的问题 **Steps to reproduce the problem** ```python 最好可以附上代码 ``` 确定token没错, java里也用的这个token 在xxl_client.py中也试了XXL-RPE-ACCESS-TOKEN 和 XXL-JOB-ACCESS-TOKEN 都不行 **Specifications like the version of the project, operating system, or hardware** * XXL-JOB...

updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.2...v0.13.3) - [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.1...v1.18.2)