mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 19:57:37 +08:00
9 lines
301 B
Python
9 lines
301 B
Python
from events.dataset_event import dataset_was_deleted
|
|
from tasks.clean_dataset_task import clean_dataset_task
|
|
|
|
|
|
@dataset_was_deleted.connect
|
|
def handle(sender, **kwargs):
|
|
dataset = sender
|
|
clean_dataset_task.delay(dataset.id, dataset.tenant_id, dataset.indexing_technique, dataset.index_struct)
|