potiuk commented on PR #36492:
URL: https://github.com/apache/airflow/pull/36492#issuecomment-1872533458
> I have tried accessing the variables from the trigger run function
multiple times after multiple context switches in event loop. I can access the
variable values without any issues
Yes. Accessing will work. But the fact that you can do it - does not mean
you should :).
The problem is that if you do it during the event loop, the access (if not
using async/await) will block - in I/O or networking and when it is blocked, no
other triggers are running because event loop runs synchronously. See what
happens (and warnings you get) when you just "sleep()" for a second or so. Or
give your Triggered fractional CPU (say 0.05) - then you will see that even
short - 50ms blocking operation will be disastrous for the event loop.
--
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]