You could use a conditional to check that there's only one instance of the job running (perhaps by checking the repository tables/views), and if so then the job started manually or scheduled would quit automatically. We use something similar to schedule a second instance of a particular job in case the first one fails, and when it runs the second time checks the repository table to see if the first one finished, has errors, or is still running and then acts accordingly.
↧