Event plugin and mounted drives

We have an event plugin, which publishes renders to Shotgun. The important pieces happen on job started and job finished.

Every few times it runs, it is unable to import sgtk. I added some logging, and when the import fails I print out the contents of one of the files in the module.

Now sometimes the file is there (even if importing failed), but most of the time it is not present.

It appears that the drive is not available, or is it possible that it is just becoming available while the plugin is running? For render plugins I clearly see in the log that drives are getting mapped, but no such thing for event plugins. Do we need to do something to ensure that the drives are mounted? Just wait for a bit?
Another possibility is a different job interfering.

Privacy | Site terms | Cookie preferences