dify/api/tasks
Harry 80f2c1be67 fix(trigger): enhance error handling and refactor end user creation in trigger workflows
- Improved error handling in `TriggerSubscriptionListApi` to return a 404 response for ValueErrors.
- Refactored end user creation logic in `service_api/wraps.py` to use `get_or_create_end_user` for better clarity and consistency.
- Introduced a new method `create_end_user_batch` for batch creation of end users, optimizing database interactions.
- Updated various trigger-related services to utilize the new end user handling, ensuring proper user context during trigger dispatching.
2025-10-17 21:00:57 +08:00
..
annotation update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
rag_pipeline use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
__init__.py feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
add_document_to_index_task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
async_workflow_tasks.py refactor(api): enhance request handling and time management 2025-09-25 19:46:52 +08:00
batch_clean_document_task.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
batch_create_segment_to_index_task.py refactor: streamline database session usage in batch_create_segment_to_index_task (#26795) 2025-10-14 09:22:48 +08:00
clean_dataset_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
clean_document_task.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
clean_notion_document_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
create_segment_to_index_task.py chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
deal_dataset_index_update_task.py feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
deal_dataset_vector_index_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
delete_account_task.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
delete_conversation_task.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
delete_segment_from_index_task.py fix segment deletion race condition (#24408) 2025-09-12 15:29:57 +08:00
disable_segment_from_index_task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
disable_segments_from_index_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
document_indexing_sync_task.py one example of Session (#24135) 2025-09-24 03:32:48 +08:00
document_indexing_task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
document_indexing_update_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
duplicate_document_indexing_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
enable_segment_to_index_task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
enable_segments_to_index_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
mail_account_deletion_task.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
mail_change_mail_task.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
mail_email_code_login.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
mail_inner_task.py fix: remote code execution in email endpoints (#25753) 2025-09-18 16:45:34 +08:00
mail_invite_member_task.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
mail_owner_transfer_task.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
mail_register_task.py Feat/email register refactor (#25369) 2025-09-12 10:24:54 +08:00
mail_reset_password_task.py Feat/email register refactor (#25369) 2025-09-12 10:24:54 +08:00
ops_trace_task.py use model_validate (#26182) 2025-10-10 17:30:13 +09:00
process_tenant_plugin_autoupgrade_check_task.py fix: switch plugin auto upgrade cache to redis (#26356) 2025-09-29 12:57:30 +08:00
recover_document_indexing_task.py feat: fix i18n missing keys and merge upstream/main (#24615) 2025-08-27 15:07:28 +08:00
remove_app_and_related_data_task.py Merge remote-tracking branch 'origin/main' into feat/trigger 2025-09-25 17:14:24 +08:00
remove_document_from_index_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
retry_document_indexing_task.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
sync_website_document_indexing_task.py update sql in batch (#24801) 2025-09-10 13:00:17 +08:00
trigger_processing_tasks.py fix(trigger): enhance error handling and refactor end user creation in trigger workflows 2025-10-17 21:00:57 +08:00
workflow_draft_var_tasks.py fix: drop useless logger code (#26650) 2025-10-09 09:24:10 +08:00
workflow_execution_tasks.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
workflow_node_execution_tasks.py remove bare list, dict, Sequence, None, Any (#25058) 2025-09-06 03:32:23 +08:00
workflow_schedule_tasks.py refactor(trigger): Unify the Trigger Debug interface and event handling and enhance error management 2025-10-15 14:41:53 +08:00