pierrejeambrun commented on code in PR #48239:
URL: https://github.com/apache/airflow/pull/48239#discussion_r2012174993


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -662,17 +744,11 @@ async def connect_stdin() -> asyncio.StreamReader:
 
         stdin = await connect_stdin()
 
-        # The first message must be this type, else we can't operate
-        line = await stdin.readline()
-
         decoder = TypeAdapter[ToTriggerRunner](ToTriggerRunner)
-        msg = decoder.validate_json(line)
-        if not isinstance(msg, messages.StartTriggerer) or msg.requests_fd <= 
0:
-            raise RuntimeError(f"First message to triggerer must be 
{messages.StartTriggerer.__name__}")

Review Comment:
   Remove this check because the startup message is now consumed earlier by the 
`run_in_process` method.



-- 
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]

Reply via email to