Shared scripts - Thread safety

Are shared gateway scripts thread-safe (can a shared script be called from multiple udt tag events at the same time)?

Yes and no.

The machinery is thread-safe. And core Jython types like lists and dictionaries are inherently thread-safe due to the use of Concurrent* java types in their implementations. But your algorithms you write may not be safe. Typical Python and Java expectations for the programmer apply.

But also note that events from the same source are executed sequentially by Ignition, which supplies some isolation for your algorithms.

TL/DR: It depends. (:

1 Like