mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 10:18:13 +08:00
6c4e6bf1d6
Co-authored-by: jyong <jyong@dify.ai>
11 lines
345 B
Python
11 lines
345 B
Python
from events.document_event import document_was_deleted
|
|
from tasks.clean_document_task import clean_document_task
|
|
|
|
|
|
@document_was_deleted.connect
|
|
def handle(sender, **kwargs):
|
|
document_id = sender
|
|
dataset_id = kwargs.get('dataset_id')
|
|
doc_form = kwargs.get('doc_form')
|
|
clean_document_task.delay(document_id, dataset_id, doc_form)
|