Skip to content

Commit

Permalink
Fix redundant taskDef in DB (conductor-oss#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
meggarr authored Jan 31, 2024
1 parent abf29a0 commit 9a6abed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.netflix.conductor.annotations.protogen.ProtoMessage;
import com.netflix.conductor.common.metadata.workflow.WorkflowTask;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.protobuf.Any;
import io.swagger.v3.oas.annotations.Hidden;

Expand Down Expand Up @@ -629,6 +630,7 @@ public void setOutputMessage(Any outputMessage) {
/**
* @return {@link Optional} containing the task definition if available
*/
@JsonIgnore
public Optional<TaskDef> getTaskDefinition() {
return Optional.ofNullable(this.getWorkflowTask()).map(WorkflowTask::getTaskDefinition);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ public void incrementPollCount() {
/**
* @return {@link Optional} containing the task definition if available
*/
@JsonIgnore
public Optional<TaskDef> getTaskDefinition() {
return Optional.ofNullable(this.getWorkflowTask()).map(WorkflowTask::getTaskDefinition);
}
Expand Down

0 comments on commit 9a6abed

Please sign in to comment.