UPDATE
This commit is contained in:
+4
-4
@@ -20,7 +20,7 @@ def rag_ingest_task(recreate: bool = True):
|
||||
@app.task(bind=True)
|
||||
def irrigation_recommendation_task(
|
||||
self,
|
||||
sensor_uuid: str,
|
||||
farm_uuid: str,
|
||||
plant_name: str | None = None,
|
||||
growth_stage: str | None = None,
|
||||
irrigation_method_name: str | None = None,
|
||||
@@ -38,7 +38,7 @@ def irrigation_recommendation_task(
|
||||
meta={"message": "در حال پردازش توصیه آبیاری..."},
|
||||
)
|
||||
result = get_irrigation_recommendation(
|
||||
sensor_uuid=sensor_uuid,
|
||||
farm_uuid=farm_uuid,
|
||||
plant_name=plant_name,
|
||||
growth_stage=growth_stage,
|
||||
irrigation_method_name=irrigation_method_name,
|
||||
@@ -51,7 +51,7 @@ def irrigation_recommendation_task(
|
||||
@app.task(bind=True)
|
||||
def fertilization_recommendation_task(
|
||||
self,
|
||||
sensor_uuid: str,
|
||||
farm_uuid: str,
|
||||
plant_name: str | None = None,
|
||||
growth_stage: str | None = None,
|
||||
query: str | None = None,
|
||||
@@ -68,7 +68,7 @@ def fertilization_recommendation_task(
|
||||
meta={"message": "در حال پردازش توصیه کودهی..."},
|
||||
)
|
||||
result = get_fertilization_recommendation(
|
||||
sensor_uuid=sensor_uuid,
|
||||
farm_uuid=farm_uuid,
|
||||
plant_name=plant_name,
|
||||
growth_stage=growth_stage,
|
||||
query=query,
|
||||
|
||||
Reference in New Issue
Block a user