From 9f257d9ca47264d7e31c010121c7e7ed8bde00ca Mon Sep 17 00:00:00 2001 From: RizaFarheen Date: Mon, 4 Dec 2023 08:29:35 +0530 Subject: [PATCH] task cache output --- docs/faqs/task-cache-output.md | 29 +++++++++++++++++++++++++++++ sidebars.js | 1 + 2 files changed, 30 insertions(+) create mode 100644 docs/faqs/task-cache-output.md diff --git a/docs/faqs/task-cache-output.md b/docs/faqs/task-cache-output.md new file mode 100644 index 00000000..515b1f35 --- /dev/null +++ b/docs/faqs/task-cache-output.md @@ -0,0 +1,29 @@ +# How are task outputs cached in Conductor? + +Certain task types support the task caching functionality, where you can enable the "Cache output" option that allows saving of task outputs for future use. On enabling this option, you need to provide the following parameters: + +```json +"cacheConfig": { + "ttlInSecond": 3600, + "key": "someCacheKey" + } +``` + +- **tlInSecondt**- Provide the time to live in seconds. You can also pass this parameter as a variable. +- **key**- Provide the cache key, which is a string with parameter substitution based on the task input. You can also pass this parameter as a variable. + +This field is currently supported for the following task types: + +- [HTTP](https://orkes.io/content/reference-docs/system-tasks/http) +- [HTTP Poll](https://orkes.io/content/reference-docs/system-tasks/http-poll) +- [Business Rule](https://orkes.io/content/reference-docs/system-tasks/business-rule) +- [JDBC](https://orkes.io/content/reference-docs/system-tasks/jdbc) +- [Opsgenie](https://orkes.io/content/reference-docs/system-tasks/opsgenie) +- [LLM Text Complete](https://orkes.io/content/reference-docs/ai-tasks/llm-text-complete) +- [LLM Generate Embeddings](https://orkes.io/content/reference-docs/ai-tasks/llm-generate-embeddings) +- [LLM Get Embeddings](https://orkes.io/content/reference-docs/ai-tasks/llm-get-embeddings) +- [LLM Search Index](https://orkes.io/content/reference-docs/ai-tasks/llm-search-index) +- [LLM Index Document](https://orkes.io/content/reference-docs/ai-tasks/llm-index-document) +- [LLM Get Document](https://orkes.io/content/reference-docs/ai-tasks/llm-get-document) +- [LLM Index Text](https://orkes.io/content/reference-docs/ai-tasks/llm-index-text) +- [Worker Task](https://orkes.io/content/reference-docs/worker-task) diff --git a/sidebars.js b/sidebars.js index a1318e22..d38a7ccc 100644 --- a/sidebars.js +++ b/sidebars.js @@ -459,6 +459,7 @@ const sidebars = { 'faqs/workflow-versioning', 'faqs/task-lifecycle', 'faqs/connecting-to-azure-service-bus', + 'faqs/task-cache-output', ], collapsible: true, collapsed: true,