mbucher wrote:
One thing that I thought of that might be affecting it. One of the "problem" files seems to be updated at 8:00am (give or take a few minutes) and there is another job that also runs when a file is updated, which usually runs every hour and 1/2 hour (e.g. 8:00, 8:30, 9:00, 9:30, etc). The other problem file usually gets FTPed to our network at the same time as another file, but the 2 files have separate events associated with them. So, could it be that events that run about the same time a causing the other events to not run at all?
Let's see... If two events are triggering on the same filename getting modified, but neither event changes the files, then I don't think that would cause any problems, since each event trigger compares the current filetime to its own record of the last filetime that it had triggered on.
But if one (or both) events modifies the file, then yes, I could see one of them getting confused somehow, depending on exactly when the changing happens. Since AI is a multithreaded app, there's no real control over when exactly a given event will check its trigger condition, or when it will do the action, relative to when a similar event checks its trigger or does its action.
Scenario 1: A file gets modified. Event 1 triggers on this change, but doesn't change the file itself. Then Event 2 triggers and does change the file. 10 seconds later, Events 1 and 2 both trigger again.
Scenario 2: A file gets modified. Event 2 triggers first on the change, and changes the file some more. Event 1 triggers because of this latest change but doesn't change the file itself. 10 seconds later, neither Events 1 nor 2 trigger, because they both see the file as up to date.
Scenario 3: A file gets modified. Event 2 triggers first on the change. Event 1 triggers because of the change. Then Event 2's action changes the file. Event 1 does something with the file, but doesn't change it. 10 seconds later, Event 1 triggers again, because Event 2 didn't get to change the file until after Event 1 triggered on the original change. Event 2 does not trigger, because as far as it's concerned it's up to date.