mirror of https://github.com/langgenius/dify.git
add billing enable check (#27213)
This commit is contained in:
parent
c327cfa86e
commit
82b63cc6e2
|
|
@ -255,7 +255,7 @@ class PipelineGenerator(BaseAppGenerator):
|
|||
json_text = json.dumps(text)
|
||||
upload_file = FileService(db.engine).upload_text(json_text, name, user.id, dataset.tenant_id)
|
||||
features = FeatureService.get_features(dataset.tenant_id)
|
||||
if features.billing.subscription.plan == "sandbox":
|
||||
if features.billing.enabled and features.billing.subscription.plan == "sandbox":
|
||||
tenant_pipeline_task_key = f"tenant_pipeline_task:{dataset.tenant_id}"
|
||||
tenant_self_pipeline_task_queue = f"tenant_self_pipeline_task_queue:{dataset.tenant_id}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue