Skip to content

Commit

Permalink
feat(backend): Optimize persistence agent to pass yaml directly to db…
Browse files Browse the repository at this point in the history
… and minio client (#1244)

* optimize persisten agent to pass yaml directly to db and minio client

* add legacy mode for users to revert back to old kfp behavior
  • Loading branch information
Tomcli authored May 24, 2023
1 parent 3ca939f commit f8ebbd4
Show file tree
Hide file tree
Showing 6 changed files with 743 additions and 62 deletions.
6 changes: 5 additions & 1 deletion backend/Dockerfile.persistenceagent
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN go-licenses csv ./backend/src/agent/persistence > /tmp/licenses.csv && \
FROM alpine:3.11
WORKDIR /bin

COPY backend/src/apiserver/config/ /config
COPY --from=builder /bin/persistence_agent /bin/persistence_agent
# Copy licenses and notices.
COPY --from=builder /tmp/licenses.csv /third_party/licenses.csv
Expand All @@ -51,4 +52,7 @@ ENV NUM_WORKERS 2
#CHILDREFERENCESKIND kind of runs to search for the childReferences
ENV CHILDREFERENCES_KINDS ""

CMD persistence_agent --logtostderr=true --namespace=${NAMESPACE} --ttlSecondsAfterWorkflowFinish=${TTL_SECONDS_AFTER_WORKFLOW_FINISH} --numWorker ${NUM_WORKERS} --childReferencesKinds ${CHILDREFERENCES_KINDS}
#LEGACY_STATUS_UPDATE legacy status update method to pass update via apiserver
ENV LEGACY_STATUS_UPDATE "false"

CMD persistence_agent --logtostderr=true --namespace=${NAMESPACE} --ttlSecondsAfterWorkflowFinish=${TTL_SECONDS_AFTER_WORKFLOW_FINISH} --numWorker=${NUM_WORKERS} --childReferencesKinds=${CHILDREFERENCES_KINDS} --legacyStatusUpdate=${LEGACY_STATUS_UPDATE} --config=/config
Loading

0 comments on commit f8ebbd4

Please sign in to comment.