I have some project with lots of pages and I generate the
page-config\config.json file or modify it with an external text editor.
When I change this file, I need to wait probably this times or restart the gateway services
in order the modified file is used.
Sometime, probably if somebody has a designer open, the config.json file may be overwritten
I would like to force the system to load my file just after I've write it on disk.
Can we do this ? with some SDK function ?
Not cleanly, no. We'd like to introduce a demand-poll mechanism, somehow, but we haven't decided on what that will look like yet.
See also: this thread:
I know (at least as of 8.1) you can reconfigure the scan rate at startup time with the ignition.projects.scanFrequency definition in your ignition.conf file, but is there a way to temporarily pause scanning just while doing some external operation that might temporarily put the projects directories in a weird state?
I’m looking for some way to do some git commands without having to stop or restart the server, and only have it scan and use the new files once I have had a chance to validate the g…
any progress about this feature ?
The effort to add a
system.project.scan() (and associated SDK-callable mechanism) is on the short-list for one of our teams, which likely means it will be picked up for development early next year.
May's still 'early', right?
8.1.28 will add the
system.project.scan method noted above, in the gateway scope. There's also an SDK-accessible
requestScan method that returns a
ProjectManagerBase if you want to do anything interesting from a custom module.