Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config timeout for bash task #87

Open
vldmr-k opened this issue Jun 20, 2024 · 1 comment
Open

Config timeout for bash task #87

vldmr-k opened this issue Jun 20, 2024 · 1 comment

Comments

@vldmr-k
Copy link

vldmr-k commented Jun 20, 2024

Hi everyone,

Default Process has limit 60 sec.

How to config it mannualy?

@kbond
Copy link
Member

kbond commented Jul 24, 2024

Hey @vldmr-k,

You'd need to do this in PHP - in a SchedulerBuilder service.

Here's an example:

        // add here and not in yaml config as we need to change the timeout
        $schedule
            ->addProcess(
                Process::fromShellCommandline('...')
                    ->setTimeout(1800), // 30 minutes
            )
            ->description('Do stuff')
            ->cron('# #(0-5) # * *') // monthly
        ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants