It is necessary to configure the glue job under Job Details > Advanced Properties > Connections for it to use the glue connection.
When using a notebook, this area is greyed out and one must instead use the magic command
%connections "your-connection-name-spaces-are-forbidden"