Galosys.Foundation.XxlJob
26.5.20.1
dotnet add package Galosys.Foundation.XxlJob --version 26.5.20.1
NuGet\Install-Package Galosys.Foundation.XxlJob -Version 26.5.20.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Galosys.Foundation.XxlJob" Version="26.5.20.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Galosys.Foundation.XxlJob" Version="26.5.20.1" />
<PackageReference Include="Galosys.Foundation.XxlJob" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Galosys.Foundation.XxlJob --version 26.5.20.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosys.Foundation.XxlJob, 26.5.20.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Galosys.Foundation.XxlJob@26.5.20.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Galosys.Foundation.XxlJob&version=26.5.20.1
#tool nuget:?package=Galosys.Foundation.XxlJob&version=26.5.20.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
XxlJob
成熟度: 🟡 可用 — 功能完整,测试或文档可能不完善
默认获取当前服务服务端口和地址作为xxljob的执行器地址,自动注册
部署 k8s
apiVersion: apps/v1
kind: Deployment
metadata:
name: xxl-job-admin
namespace: foundation-samples
labels:
app: xxl-job-admin
spec:
replicas: 1
selector:
matchLabels:
app: xxl-job-admin
template:
metadata:
labels:
app: xxl-job-admin
spec:
containers:
- name: xxl-job-admin
image: docker.1ms.run/xuxueli/xxl-job-admin:2.4.2
env:
- name: PARAMS
value: '
--spring.datasource.url=jdbc:mysql://192.168.11.89:3306/xxl_job?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
--spring.datasource.username=root
--spring.datasource.password=jY0#R599#%17#&5g^^B!zT$#9g0A0Z
--xxl.job.accessToken=xxl-job'
ports:
- containerPort: 80
imagePullPolicy: Always
imagePullSecrets:
- name: zhangjiakou
---
apiVersion: v1
kind: Service
metadata:
labels:
expose: "true"
app: xxl-job-admin
name: xxl-job-admin
namespace: foundation-samples
spec:
ports:
- name: transport
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: xxl-job-admin
配置
"XxlJob": {
"AdminAddresses": "http://192.168.11.89:8040/xxl-job-admin",
//"specialBindAddress": "127.0.0.1",//裸机部署可能需要提供地址和端口号,k8s中可自行获取pod地址注册到管理端
//"Port":80,
"AccessToken": "xxl-job",
"LogRetentionDays": 30
}
中间件注册
app.UseXxlJobExecutor();
业务代码
[JobHandler("demoJobHandler")]
internal class DemoXxlJobHandler : AbstractJobHandler
{
public override async Task<ReturnT> Execute(JobExecuteContext context)
{
await Console.Out.WriteLineAsync(DateTime.Now.ToShortTimeString());
return ReturnT.SUCCESS;
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- dotxxljob.core (>= 2.3.2)
- Galosys.Foundation.Core (>= 26.5.20.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Galosys.Foundation.XxlJob:
| Package | Downloads |
|---|---|
|
Galosys.Micro.App
Galosys.Foundation快速开发库 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.5.20.1 | 91 | 5/20/2026 |
| 26.5.19.1 | 93 | 5/19/2026 |
| 26.5.18.1 | 91 | 5/18/2026 |
| 26.5.15.1 | 87 | 5/15/2026 |
| 26.5.12.3 | 90 | 5/12/2026 |
| 26.5.12.2 | 90 | 5/12/2026 |
| 26.4.27.1-rc1 | 89 | 4/26/2026 |
| 26.4.25.1-rc1 | 93 | 4/25/2026 |
| 26.4.22.2-rc7 | 90 | 4/22/2026 |
| 26.4.22.2-rc6 | 94 | 4/22/2026 |
| 26.4.22.2-rc4 | 89 | 4/22/2026 |
| 26.4.22.2-rc3 | 96 | 4/22/2026 |
| 26.4.19.1-rc1 | 101 | 4/19/2026 |
| 26.4.12.8-rc1 | 94 | 4/12/2026 |
| 26.4.12.7-rc1 | 98 | 4/12/2026 |
| 26.4.12.5-rc1 | 98 | 4/12/2026 |
| 26.1.30.1-rc1 | 130 | 1/30/2026 |
| 26.1.29.1 | 137 | 1/29/2026 |
| 26.1.28.5 | 124 | 1/28/2026 |
| 26.1.28.4 | 125 | 1/28/2026 |
Loading failed