Skip to main content

xxl-admin-sh

安装

要求python>=3.9

pip install xxl-admin-sh

安装成功后可直接用xxl进入程序

xxl

用法

首次使用会使用默认配置,退出后会自动保存到配置文件

帮助命令

help # 可显示所有可用命令

# 此外任意命令、子命令可通过-h选项显示帮助信息,比如
job -h
group -h

配置命令

config env-set #设置环境配置
config list-clusters #当前环境可用集群列表
config add-cluster #添加集群到当前环境
config remove-cluster #从当前环境移除集群

切换命令

goto prod #可切环境
goto prod cn #可切环境+集群
goto cn #可在当前环境切集群

可显示所有可用命令

执行器列表

group list
group list -a #显示所有集群下面的

任务列表

job list
job list xxx #模糊搜索
job list xxx -a #模糊搜索所有集群下面的
job list DemoJobHanlder #精确搜索

任务执行

job run DemoJobHanlder
job run DemoJobHanlder -a #所有集群都执行
job debug DemoJobHanlder # 自动使用本地地址触发

新增任务

job add --exec DemoJobHanlder --group 10 --cron "0 0 0 * * ?" --title 示例任务2

更新任务

job update DemoJobHanlder --cron "0 0 10 * * ?" --title 示例任务2

开启、停止任务

job on DemoJobHanlder #开启
job off DemoJobHanlder #停止

Metadata

Release files for xxl-admin-sh 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xxl-admin-sh 0.1.1
File Size Uploaded
xxl_admin_sh-0.1.1.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xxl-admin-sh 0.1.1
File Interpreter ABI Platform
xxl_admin_sh-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / xxl_admin_sh-0.1.1.tar.gz

Download URL xxl_admin_sh-0.1.1.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9cb98fdbd5cf67dfed2d1f0b7707ed001a44afc2400cb5e14337d897b2ee897
BLAKE2b-256 checksum
How to use checksums
596d08b2e92ca36da7b7c8075caf4099a5f59cef9416b57764c8ac4a8d3260bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.10.0 CPython/3.11.5

Release files / xxl_admin_sh-0.1.1-py3-none-any.whl

Download URL xxl_admin_sh-0.1.1-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d51672fa5cbbac3c12fb0181578bd9e03ef9ffe015b5f74d76d58f7c4f03c03a
BLAKE2b-256 checksum
How to use checksums
a34f8774a932412c0033a4cb453d53318b77c1af59ff541c2a2a4838d7173215
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.10.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page