Yea that’s the gizmo issue.
Least code is probably the auxilliary file approach… although for me it feels a bit of a hack.
Switching the writenodes to normal writenodes and back is the more standard approach.
Have fun with updating the deadline submission code… it can be a painful learning curve!
There might be useful stuff on the deadline forums… like this Shotgun tk Write nodes and Deadline, how? - Deadline - AWS Thinkbox Discussion Forums
Plus, the subject has been covered on this forum here : Shotgrid nodes in Deadline - Pipeline Integrations - Community @ Flow Production Tracking