mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
724e053732
Co-authored-by: jyong <jyong@dify.ai>
10 lines
361 B
Python
10 lines
361 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, dataset.collection_binding_id)
|