alwaysRun = $alwaysRun; } /** * @return bool */ public function getAlwaysRun() { return $this->alwaysRun; } /** * This flag allows a Runnable to continue running in the background while the * Task executes subsequent Runnables. This is useful to provide services to * other Runnables (or to provide debugging support tools like SSH servers). * * @param bool $background */ public function setBackground($background) { $this->background = $background; } /** * @return bool */ public function getBackground() { return $this->background; } /** * Container runnable. * * @param AgentContainer $container */ public function setContainer(AgentContainer $container) { $this->container = $container; } /** * @return AgentContainer */ public function getContainer() { return $this->container; } /** * Environment variables for this Runnable (overrides variables set for the * whole Task or TaskGroup). * * @param AgentEnvironment $environment */ public function setEnvironment(AgentEnvironment $environment) { $this->environment = $environment; } /** * @return AgentEnvironment */ public function getEnvironment() { return $this->environment; } /** * Normally, a non-zero exit status causes the Task to fail. This flag allows * execution of other Runnables to continue instead. * * @param bool $ignoreExitStatus */ public function setIgnoreExitStatus($ignoreExitStatus) { $this->ignoreExitStatus = $ignoreExitStatus; } /** * @return bool */ public function getIgnoreExitStatus() { return $this->ignoreExitStatus; } /** * Script runnable. * * @param AgentScript $script */ public function setScript(AgentScript $script) { $this->script = $script; } /** * @return AgentScript */ public function getScript() { return $this->script; } /** * Timeout for this Runnable. * * @param string $timeout */ public function setTimeout($timeout) { $this->timeout = $timeout; } /** * @return string */ public function getTimeout() { return $this->timeout; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AgentTaskRunnable::class, 'Google_Service_Batch_AgentTaskRunnable');