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

Running task in sequence #30

Closed
gabbykweka opened this issue Aug 11, 2022 · 2 comments
Closed

Running task in sequence #30

gabbykweka opened this issue Aug 11, 2022 · 2 comments

Comments

@gabbykweka
Copy link

I been trying to run task in serialize manner. Meaning after the first task is done should run another schedule task. Is this possible? Using the after function seems to fail with error Call to a member function isRunning() on null

The second command depends on the result processed from the first command.

@PabloKowalczyk
Copy link
Member

Hello, Crunz is designed to run all tasks in parallel (same as Cron), so there is no way to "run task after other taks", but you can use Unix's &&, for example mkdir test && cd test, or you can write PHP script that will run two commands.

The second command depends on the result processed from the first command.

In this case Unix's pipe | looks like ideal candidate.

@gabbykweka
Copy link
Author

Thank you for the feedback! Will test the && and see the output of it!

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

No branches or pull requests

2 participants