Hi,
We have a long running script and want to prevent two users from starting it simultaneously. Is using custom settings best practice for this?
If not, what is recommended?
My suggestion would be to put a bit of code at the start and end of the process.
On start write the time/data/user to a table or custom setting and on end delete it.
Also on start prompt the user if a value us found that another user appears to be running the process - do they wish to continue?
The AppEngine doesn't like my code
RepositoryConnection rep = CreateRepositoryConnectionExisting(); SetCustomSetting(rep, "ScriptStatus, "TRUE");
I see a missing closing double-quote for the 2nd argument of you SetCustomSetting() function call...
LOL sorry
Barney
You could write the flag in a very simple dummy cube as long as all users have RW capabilities to that cube ...