Page 1 of 1

Prevent jobArrived from triggering when previous job removed

Posted: Thu Sep 15, 2016 6:58 pm
by gabrielp
I have an instance where I want to do a pickup, where a job picks up another job that is in the same folder preceding the script. It works fine, but I get the following error for the file I've already sent to null:

Code: Select all

The input job does not exist: '/Users/dominickpeluso/Library/Application Support/Enfocus/Switch Server/backing/XML Pickup/automanaged/Folder 1/_001GU_ticket.xml'
I'm guessing that jobArrived is being called twice, even though ticket.xml has been sent to null. Is there another way to prevent Switch from executing jobArrived or to check if the job is still there before doing so?

Re: Prevent jobArrived from triggering when previous job removed

Posted: Thu Sep 15, 2016 11:11 pm
by gabrielp
I ended up solving this but not 100% sure what the fix was. My hunch is that somewhere in my code I was calling methods on the job object that had been removed.