Skip to content

Strong-type single-state enum values#32537

Merged
potiuk merged 1 commit into
apache:mainfrom
astronomer:job-and-pod-state
Jul 12, 2023
Merged

Strong-type single-state enum values#32537
potiuk merged 1 commit into
apache:mainfrom
astronomer:job-and-pod-state

Conversation

@uranusjr

@uranusjr uranusjr commented Jul 12, 2023

Copy link
Copy Markdown
Member

More State constant conversions. Also switch State.finished to State.finished_dr_states when used to compare against DagRunState. State.finished is a set of TaskInstanceState so the comparison was not technically correct. Calls to save a state to Log are converted to use a string value instead of enum since Log data are free-form.

@uranusjr
uranusjr requested review from XD-DENG, ashb and kaxil as code owners July 12, 2023 00:38
@boring-cyborg boring-cyborg Bot added area:core-operators area:Scheduler including HA (high availability) scheduler area:Triggerer labels Jul 12, 2023
@uranusjr
uranusjr force-pushed the job-and-pod-state branch from 898194f to c1eae2d Compare July 12, 2023 01:51

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@potiuk
potiuk merged commit fd2687d into apache:main Jul 12, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Aug 2, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler area:Triggerer type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants