Skip to content

Commit 3b18bc9

Browse files
authored
Merge pull request #212 from LianjiaTech/develop
change inject queue worker style from code to property
2 parents 707e660 + 41f2cd0 commit 3b18bc9

File tree

6 files changed

+5
-20
lines changed

6 files changed

+5
-20
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<groupId>top.bella</groupId>
1919
<artifactId>bella-openapi</artifactId>
20-
<version>1.1.67</version>
20+
<version>1.1.68</version>
2121
<name>bella-openapi</name>
2222
<description>Bella OpenAPI SDK</description>
2323
<url>https://github.com/LianjiaTech/bella-openapi</url>

api/sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>top.bella</groupId>
77
<artifactId>bella-openapi</artifactId>
8-
<version>1.1.67</version>
8+
<version>1.1.68</version>
99
</parent>
1010

1111
<artifactId>openapi-sdk</artifactId>

api/server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>top.bella</groupId>
66
<artifactId>bella-openapi</artifactId>
7-
<version>1.1.67</version>
7+
<version>1.1.68</version>
88
</parent>
99
<artifactId>openapi-server</artifactId>
1010
<name>bella-openapi-server</name>

api/spi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>top.bella</groupId>
66
<artifactId>bella-openapi</artifactId>
7-
<version>1.1.67</version>
7+
<version>1.1.68</version>
88
</parent>
99
<artifactId>openapi-spi</artifactId>
1010
<packaging>jar</packaging>

api/spi/src/main/java/com/ke/bella/queue/worker/EnableWorker.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

api/spi/src/main/java/com/ke/bella/queue/worker/WorkerConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
public class WorkerConfiguration {
1313

1414
@Bean
15+
@ConditionalOnProperty(prefix = "bella.queue.worker", name = "enabled", havingValue = "true")
1516
@ConditionalOnMissingBean(Worker.class)
1617
@ConditionalOnBean(TaskExecutor.class)
1718
public Worker worker(TaskExecutor taskExecutor, OpenAiService openAiService) {

0 commit comments

Comments
 (0)