to control the execution of spark application