bcooney Posted February 16, 2012 Posted February 16, 2012 I need clarification on how FMS schedules process. Our system has several server scripts that run at night. They are called from separate schedules and we assumed that they each run the File Open script. 1. If Schedule 1 takes 3 hrs and Schedule 2 starts at 2am, does it run concurrently or wait until Schedule1 is complete? 2. If it runs concurrently, does Schedule 2 run the File's Open Script or does it say, "hmm...I already have a session, I'll skip the Open Script?" I ask because we are seeing unexpected settings to our global fields. These fields are set in the Open Script. We're starting to think concurrent server scripts are "overwriting" the global values. We are considering a master server script controller to avoid concurrent server scripts (if that's necessary). tia, Barbara
Ron Cates Posted February 16, 2012 Posted February 16, 2012 You would not see values in Globals set by a server script because globals are specific the the user and in order to see global values set by the server, you would have to be the server :unsure:
bcooney Posted February 16, 2012 Author Posted February 16, 2012 Let me clarify. These scripts set fields in records to the global value. We are receiving the incorrect global value.
Ron Cates Posted February 16, 2012 Posted February 16, 2012 Let me clarify. These scripts set fields in records to the global value. We are receiving the incorrect global value. It seems to me the only Global values that the server can draw from were either there when the file was hosted or they would have to have been set by the server previously. Barbara, I know you are far more advanced than I, so I'm just curious more so than trying to offer an answer. I doubt I could come up with anything you haven't already thought of. :)
dansmith65 Posted February 16, 2012 Posted February 16, 2012 I don't know the answer either, but here is a test I would do... Create a script that pauses for a few min (if pause isn't a server compatible step, then have it do something to take up a few min. time). Make the "on file open" script create a new record, and insert the current timestamp into a field. Schedule the server to run the "pause" script twice: 1 min apart (separate schedules) Look at the records created, and the time's in the timestamp field. If only one record is created, then the "on file open" script IS skipped for the second script If two records are created, and the time between the timestamps is more than 1 min. apart, then the server does wait for the first script If two records are created, and the time between the timestamps is 1 min, then they are both triggered on schedule, regardless of other running scripts ps. might also want to save the timestamp when the script finishes to be sure the first script was running when the 2nd script started.
Fitch Posted February 16, 2012 Posted February 16, 2012 The current behavior of server is that when a server script sets a global, the value then becomes the default, just as if the global had been set in single-user mode.
bcooney Posted February 17, 2012 Author Posted February 17, 2012 It boils down to confirming that schedules queue and do not run concurrently, even if they are run as two different accounts, and so server has only one set of globals at any one time. Also, every time a schedule is run, server performs the File Open script. Thank you for the suggestions.
Recommended Posts
This topic is 4661 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now