mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
add create tidb serverless job control (#10467)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
1 parent
25ca0278dd
commit
445dcfe4d0
6 files changed
+14
No files matched your search
@@ -12,6 +12,8 @@ from models.dataset import TidbAuthBinding
|
||||
@app.celery.task(queue="dataset")
|
||||
def create_tidb_serverless_task():
|
||||
click.echo(click.style("Start create tidb serverless task.", fg="green"))
|
||||
if not dify_config.CREATE_TIDB_SERVICE_JOB_ENABLED:
|
||||
return
|
||||
tidb_serverless_number = dify_config.TIDB_SERVERLESS_NUMBER
|
||||
start_at = time.perf_counter()
|
||||
while True:
|
||||
|
||||
Reference in new issue
Block a user