I want to set a timeout duration for Gearman jobs. For instance, I don’t want a gearman job to run for more than 30 seconds, and if the job is running for more than 30 seconds it should be stopped and the next job is started.
Is this possible with Gearman? (I’m using the Gearman PHP API on Centos 6.2)
What you are looking for is GearmanWorker::timeout here is a Good Example