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

Run Background Tasks #19

Open
aravindavk opened this issue Dec 24, 2021 · 0 comments
Open

Run Background Tasks #19

aravindavk opened this issue Dec 24, 2021 · 0 comments

Comments

@aravindavk
Copy link
Member

aravindavk commented Dec 24, 2021

Add new syntax to support running background tasks. Stop the background job on exit.

BG "workload_runner" "./workload.sh /mnt/vol1"

Using the name, stop the Background task when needed.

BG_STOP "workload_runner"

Send signal to the background process

BG_SIGNAL "workload_runner", "SIGHUP"

In between other tests, check if background process is running or not when needed.

BG_RUNNING? "workload_runner"
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

1 participant