We're working towards upgrading our gateways to 8.3 and have run into a bit of a snag. We deploy our updates using Azure to push the updated files directly to the gateway file system. In 8.1 the gateway would scan for file system changes and pick up on updated resources automatically, but in 8.3 that has gone away.
We have a large number of gateways and we deploy to them automatically, so I'm looking for a way to force a resource refresh during our update deployments.
One thought was to use an http call to request the refresh, but that requires configuring an API key on every gateway, and I don't want to deal with doing that on all of our gateways, since we have a lot of them.
My current thinking is to use WebDev to initiate the refresh, but I haven't been able to get that working. Maybe these methods aren't exposed in the Jython?
def doGet(request, session):
# IgnitionGateway SDK Imports
from com.inductiveautomation.ignition.gateway import IgnitionGateway
# obtain the gateway context
gatewayContext = IgnitionGateway.get()
gatewayContext.getConfigurationManager().requestScan()
gatewayContext.getProjectManager().requestScan()
return {'html': "Refresh requested"}
Any help greatly appreciated.