Lock the process so that multiple instances can’t run simultaneously. Override if applicable, but the duration should be greater than that defined in the time_exceeded() method.
WP_Background_Process::lock_process
Lock the process so that multiple instances can’t run simultaneously. Override if applicable, but the duration should be greater than that defined in the time_exceeded() method.