VOOZH about

URL: https://www.nuget.org/packages/Galosys.Foundation.XxlJob/

⇱ NuGet Gallery | Galosys.Foundation.XxlJob 26.5.20.1




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" />
 
Directory.Packages.props
<PackageReference Include="Galosys.Foundation.XxlJob" />
 
Project file
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
 
Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.XxlJob&version=26.5.20.1
 
Install as a Cake Tool
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 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 96 5/20/2026
26.5.19.1 97 5/19/2026
26.5.18.1 94 5/18/2026
26.5.15.1 91 5/15/2026
26.5.12.3 93 5/12/2026
26.5.12.2 93 5/12/2026
26.4.27.1-rc1 92 4/26/2026
26.4.25.1-rc1 93 4/25/2026
26.4.22.2-rc7 91 4/22/2026
26.4.22.2-rc6 95 4/22/2026
26.4.22.2-rc4 90 4/22/2026
26.4.22.2-rc3 97 4/22/2026
26.4.19.1-rc1 102 4/19/2026
26.4.12.8-rc1 95 4/12/2026
26.4.12.7-rc1 101 4/12/2026
26.4.12.5-rc1 99 4/12/2026
26.1.30.1-rc1 130 1/30/2026
26.1.29.1 139 1/29/2026
26.1.28.5 125 1/28/2026
26.1.28.4 126 1/28/2026
Loading failed