Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 80b2df78
authored
Mar 29, 2026
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update doc
1 parent
72b20e22
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
doc/XXL-JOB官方文档.md
doc/db/tables_xxl_job.sql
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/java/com/xxl/job/executor/controller/IndexController.java
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/java/com/xxl/job/executor/jobhandler/AIXxlJob.java
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java
doc/XXL-JOB官方文档.md
View file @
80b2df7
...
@@ -1276,7 +1276,7 @@ public void demoJobHandler() throws Exception {
...
@@ -1276,7 +1276,7 @@ public void demoJobHandler() throws Exception {
{
{
"input": "{输入信息,必填信息}",
"input": "{输入信息,必填信息}",
"prompt": "{模型prompt,可选信息}",
"prompt": "{模型prompt,可选信息}",
"model": "{模型实现,如qwen3
:0.6
b,可选信息}"
"model": "{模型实现,如qwen3
.5:2
b,可选信息}"
}
}
```
```
-
b、difyWorkflowJobHandler:DifyWorkflow 任务,支持自定义inputs、user、baseUrl、apiKey 等输入信息,示例参数如下;
-
b、difyWorkflowJobHandler:DifyWorkflow 任务,支持自定义inputs、user、baseUrl、apiKey 等输入信息,示例参数如下;
...
...
doc/db/tables_xxl_job.sql
View file @
80b2df7
...
@@ -161,7 +161,7 @@ VALUES (1, 1, '示例任务01', now(), now(), 'XXL', '', 'CRON', '0 0 0 * * ? *'
...
@@ -161,7 +161,7 @@ VALUES (1, 1, '示例任务01', now(), now(), 'XXL', '', 'CRON', '0 0 0 * * ? *'
'DO_NOTHING'
,
'FIRST'
,
'ollamaJobHandler'
,
'{
'DO_NOTHING'
,
'FIRST'
,
'ollamaJobHandler'
,
'{
"input": "慢SQL问题分析思路",
"input": "慢SQL问题分析思路",
"prompt": "你是一个研发工程师,擅长解决技术类问题。",
"prompt": "你是一个研发工程师,擅长解决技术类问题。",
"model": "qwen3
:0.6
b"
"model": "qwen3
.5:2
b"
}'
,
'SERIAL_EXECUTION'
,
0
,
0
,
'BEAN'
,
''
,
'GLUE代码初始化'
,
}'
,
'SERIAL_EXECUTION'
,
0
,
0
,
'BEAN'
,
''
,
'GLUE代码初始化'
,
now
(),
''
),
now
(),
''
),
(
3
,
2
,
'Dify示例任务'
,
now
(),
now
(),
'XXL'
,
''
,
'NONE'
,
''
,
(
3
,
2
,
'Dify示例任务'
,
now
(),
now
(),
'XXL'
,
''
,
'NONE'
,
''
,
...
...
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/java/com/xxl/job/executor/controller/IndexController.java
View file @
80b2df7
...
@@ -50,7 +50,7 @@ public class IndexController {
...
@@ -50,7 +50,7 @@ public class IndexController {
@Resource
@Resource
private
OllamaChatModel
ollamaChatModel
;
private
OllamaChatModel
ollamaChatModel
;
private
String
prompt
=
"你好,你是一个研发工程师,擅长解决技术类问题。"
;
private
String
prompt
=
"你好,你是一个研发工程师,擅长解决技术类问题。"
;
private
String
modle
=
"qwen3
:0.6
b"
;
private
String
modle
=
"qwen3
.5:2
b"
;
/**
/**
* ChatClient 简单调用
* ChatClient 简单调用
...
...
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/java/com/xxl/job/executor/jobhandler/AIXxlJob.java
View file @
80b2df7
...
@@ -70,7 +70,7 @@ public class AIXxlJob {
...
@@ -70,7 +70,7 @@ public class AIXxlJob {
return
;
return
;
}
}
if
(
ollamaParam
.
getModel
()==
null
||
ollamaParam
.
getModel
().
isBlank
())
{
if
(
ollamaParam
.
getModel
()==
null
||
ollamaParam
.
getModel
().
isBlank
())
{
ollamaParam
.
setModel
(
"qwen3
:0.6
b"
);
ollamaParam
.
setModel
(
"qwen3
.5:2
b"
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
XxlJobHelper
.
log
(
new
RuntimeException
(
"OllamaParam parse error"
,
e
));
XxlJobHelper
.
log
(
new
RuntimeException
(
"OllamaParam parse error"
,
e
));
...
...
xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java
View file @
80b2df7
...
@@ -32,7 +32,7 @@ public class OllamaTest {
...
@@ -32,7 +32,7 @@ public class OllamaTest {
@Test
@Test
public
void
chatTest
()
{
public
void
chatTest
()
{
String
model
=
"qwen3
:0.6
b"
;
String
model
=
"qwen3
.5:2
b"
;
String
prompt
=
"背景说明:你是一个研发工程师,擅长解决技术类问题。"
;
String
prompt
=
"背景说明:你是一个研发工程师,擅长解决技术类问题。"
;
String
input
=
"请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"
;
String
input
=
"请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"
;
...
@@ -59,7 +59,7 @@ public class OllamaTest {
...
@@ -59,7 +59,7 @@ public class OllamaTest {
@Test
@Test
public
void
chatStreamTest
()
throws
InterruptedException
{
public
void
chatStreamTest
()
throws
InterruptedException
{
String
model
=
"qwen3
:0.6
b"
;
String
model
=
"qwen3
.5:2
b"
;
String
prompt
=
"背景说明:你是一个研发工程师,擅长解决技术类问题。"
;
String
prompt
=
"背景说明:你是一个研发工程师,擅长解决技术类问题。"
;
String
input
=
"请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"
;
String
input
=
"请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment