Galosoft.IaaS.XxlJob 24.12.26.5-nj

This is a prerelease version of Galosoft.IaaS.XxlJob.
dotnet add package Galosoft.IaaS.XxlJob --version 24.12.26.5-nj                
NuGet\Install-Package Galosoft.IaaS.XxlJob -Version 24.12.26.5-nj                
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="Galosoft.IaaS.XxlJob" Version="24.12.26.5-nj" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Galosoft.IaaS.XxlJob --version 24.12.26.5-nj                
#r "nuget: Galosoft.IaaS.XxlJob, 24.12.26.5-nj"                
#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.
// Install Galosoft.IaaS.XxlJob as a Cake Addin
#addin nuget:?package=Galosoft.IaaS.XxlJob&version=24.12.26.5-nj&prerelease

// Install Galosoft.IaaS.XxlJob as a Cake Tool
#tool nuget:?package=Galosoft.IaaS.XxlJob&version=24.12.26.5-nj&prerelease                

XxlJob


默认获取当前服务服务端口和地址作为xxljob的执行器地址,自动注册

部署 k8s

apiVersion: apps/v1
kind: Deployment
metadata:
  name: xxl-job-admin
  namespace: iaas-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: iaas-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",
    "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 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. 
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 Galosoft.IaaS.XxlJob:

Package Downloads
Galosoft.Micro.App

Galosoft.IaaS快速开发库

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.12.26.5-nj 40 12/27/2024
24.12.17.3-nj 43 12/19/2024
24.12.17.2-nj 35 12/19/2024
24.12.17.1-nj 40 12/19/2024