amoghrajesh commented on code in PR #53387: URL: https://github.com/apache/airflow/pull/53387#discussion_r2282411719
########## airflow-core/src/airflow/jobs/job.py: ########## @@ -41,7 +42,19 @@ from airflow.utils.platform import getuser from airflow.utils.session import NEW_SESSION, create_session, provide_session from airflow.utils.sqlalchemy import UtcDateTime -from airflow.utils.state import JobState + + +class JobState(str, Enum): + """All possible states that a Job can be in.""" + + RUNNING = "running" + SUCCESS = "success" + RESTARTING = "restarting" + FAILED = "failed" + + def __str__(self) -> str: + return self.value Review Comment: Incomplete sentence, I meant: > Although `from airflow.jobs.job import Job`, JobState is a good place for that enum to live in, so you can repurpose this PR for that ONLY. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
