Skip to content

Commit a3f53c0

Browse files
authored
Merge pull request #229 from orkes-io/task_caching
Task Execution Cache
2 parents b59bd2c + 3ed3d45 commit a3f53c0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

common/src/main/java/com/netflix/conductor/common/metadata/workflow/WorkflowTask.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ public void setTasks(List<WorkflowTask> tasks) {
151151
@ProtoField(id = 29)
152152
private String joinStatus;
153153

154+
@ProtoField(id = 30)
155+
private Map<String, Object> cacheKey = new HashMap<>();
156+
157+
@ProtoField(id = 31)
158+
private long cacheTTL;
159+
154160
/*
155161
Map of events to be emitted when the task status changed.
156162
key can be comma separated values of the status changes prefixed with "on"<STATUS>
@@ -392,6 +398,22 @@ public void setScriptExpression(String expression) {
392398
this.scriptExpression = expression;
393399
}
394400

401+
public Map<String, Object> getCacheKey() {
402+
return cacheKey;
403+
}
404+
405+
public void setCacheKey(Map<String, Object> cacheKey) {
406+
this.cacheKey = cacheKey;
407+
}
408+
409+
public long getCacheTTL() {
410+
return cacheTTL;
411+
}
412+
413+
public void setCacheTTL(long cacheTTL) {
414+
this.cacheTTL = cacheTTL;
415+
}
416+
395417
/**
396418
* @return the subWorkflow
397419
*/

0 commit comments

Comments
 (0)