Skip to content

Commit

Permalink
Merge pull request #578 from RizaFarheen/main
Browse files Browse the repository at this point in the history
task cache output
  • Loading branch information
nhandt2021 authored Dec 4, 2023
2 parents c5d2c63 + 9f257d9 commit 2ba70e9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/faqs/task-cache-output.md
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2ba70e9

Please sign in to comment.