Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Add batched reasons to TaskExecutionEvent #443

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

andrewwdye
Copy link
Contributor

TL;DR

Deprecate TaskExecutionEvent.reason in favor of TaskExecutionEvent.reasons to send batched events from flytepropeller, each with their own timestamp.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

This change makes it possible to send kubernetes events as described in flyteorg/flyte#3825 without overloading propeller or admin with a large increase in TaskExecutionEvents. It deprecates TaskExecutionEvent.reason in favor of a repeated TaskExecutionEvent.reasons, which includes separate timestamps for each event. This allows for sending multiple reasons as part of the same event.

Tracking Issue

flyteorg/flyte#3825

Follow-up issue

N/A

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (b130a81) 75.92% compared to head (3e32d6a) 75.92%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #443   +/-   ##
=======================================
  Coverage   75.92%   75.92%           
=======================================
  Files          18       18           
  Lines        1458     1458           
=======================================
  Hits         1107     1107           
  Misses        294      294           
  Partials       57       57           
Flag Coverage Δ
unittests 75.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
…k8s-events

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
protos/flyteidl/event/event.proto Show resolved Hide resolved
Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
@hamersaw hamersaw merged commit 85bfc8f into flyteorg:master Sep 27, 2023
13 checks passed
@andrewwdye andrewwdye deleted the k8s-events branch September 27, 2023 22:07
eapolinario pushed a commit that referenced this pull request Sep 28, 2023
* Add batched reasons to TaskExecutionEvent

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>

* Change event name

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>

* Rename Reason to EventReason

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>

---------

Signed-off-by: Andrew Dye <andrewwdye@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants