mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 03:58:30 +02:00
ignore result when using send_task on lightweight tasks (#3978)
* ignore result when using send_task on lightweight tasks * fix ignore_result --------- Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app> Co-authored-by: Richard Kuo <rkuo@rkuo.com>
This commit is contained in:
@@ -270,6 +270,7 @@ def cloud_beat_task_generator(
|
|||||||
queue=queue,
|
queue=queue,
|
||||||
priority=priority,
|
priority=priority,
|
||||||
expires=expires,
|
expires=expires,
|
||||||
|
ignore_result=True,
|
||||||
)
|
)
|
||||||
except SoftTimeLimitExceeded:
|
except SoftTimeLimitExceeded:
|
||||||
task_logger.info(
|
task_logger.info(
|
||||||
|
@@ -120,6 +120,7 @@ class RedisConnectorCredentialPair(RedisObjectHelper):
|
|||||||
queue=OnyxCeleryQueues.VESPA_METADATA_SYNC,
|
queue=OnyxCeleryQueues.VESPA_METADATA_SYNC,
|
||||||
task_id=custom_task_id,
|
task_id=custom_task_id,
|
||||||
priority=OnyxCeleryPriority.MEDIUM,
|
priority=OnyxCeleryPriority.MEDIUM,
|
||||||
|
ignore_result=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
num_tasks_sent += 1
|
num_tasks_sent += 1
|
||||||
|
@@ -132,6 +132,7 @@ class RedisConnectorDelete:
|
|||||||
queue=OnyxCeleryQueues.CONNECTOR_DELETION,
|
queue=OnyxCeleryQueues.CONNECTOR_DELETION,
|
||||||
task_id=custom_task_id,
|
task_id=custom_task_id,
|
||||||
priority=OnyxCeleryPriority.MEDIUM,
|
priority=OnyxCeleryPriority.MEDIUM,
|
||||||
|
ignore_result=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
async_results.append(result)
|
async_results.append(result)
|
||||||
|
@@ -196,6 +196,7 @@ class RedisConnectorPermissionSync:
|
|||||||
queue=OnyxCeleryQueues.DOC_PERMISSIONS_UPSERT,
|
queue=OnyxCeleryQueues.DOC_PERMISSIONS_UPSERT,
|
||||||
task_id=custom_task_id,
|
task_id=custom_task_id,
|
||||||
priority=OnyxCeleryPriority.HIGH,
|
priority=OnyxCeleryPriority.HIGH,
|
||||||
|
ignore_result=True,
|
||||||
)
|
)
|
||||||
async_results.append(result)
|
async_results.append(result)
|
||||||
|
|
||||||
|
@@ -202,6 +202,7 @@ class RedisConnectorPrune:
|
|||||||
queue=OnyxCeleryQueues.CONNECTOR_DELETION,
|
queue=OnyxCeleryQueues.CONNECTOR_DELETION,
|
||||||
task_id=custom_task_id,
|
task_id=custom_task_id,
|
||||||
priority=OnyxCeleryPriority.MEDIUM,
|
priority=OnyxCeleryPriority.MEDIUM,
|
||||||
|
ignore_result=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
async_results.append(result)
|
async_results.append(result)
|
||||||
|
Reference in New Issue
Block a user