From 28cb50492cedd1fd86762bf31a10e70fbe56a0cb Mon Sep 17 00:00:00 2001 From: Justin Harms Date: Fri, 13 Mar 2026 21:18:04 -0500 Subject: [PATCH] Update jiggablend-runner script to accept additional runner flags - Modified the jiggablend-runner script to allow passing extra flags during execution, enhancing flexibility for users. - Updated usage instructions to reflect the new syntax, providing examples for better clarity on how to utilize the runner with various options. --- installer.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/installer.sh b/installer.sh index 1416a59..59598f4 100644 --- a/installer.sh +++ b/installer.sh @@ -79,17 +79,23 @@ cat << 'EOF' > jiggablend-runner.sh set -euo pipefail # Wrapper to run jiggablend runner with test setup -# Usage: jiggablend-runner [MANAGER_URL] +# Usage: jiggablend-runner [MANAGER_URL] [RUNNER_FLAGS...] # Default MANAGER_URL: http://localhost:8080 # Run this in a directory where you want the logs -MANAGER_URL="${1:-http://localhost:8080}" +MANAGER_URL="http://localhost:8080" +if [[ $# -gt 0 && "$1" != -* ]]; then + MANAGER_URL="$1" + shift +fi + +EXTRA_ARGS=("$@") mkdir -p logs rm -f logs/runner.log # Run runner -jiggablend runner -l logs/runner.log --api-key=jk_r0_test_key_123456789012345678901234567890 --manager "$MANAGER_URL" +jiggablend runner -l logs/runner.log --api-key=jk_r0_test_key_123456789012345678901234567890 --manager "$MANAGER_URL" "${EXTRA_ARGS[@]}" EOF chmod +x jiggablend-runner.sh sudo install -m 0755 jiggablend-runner.sh /usr/local/bin/jiggablend-runner @@ -102,5 +108,6 @@ echo "Installation complete!" echo "Binary: jiggablend" echo "Wrappers: jiggablend-manager, jiggablend-runner" echo "Run 'jiggablend-manager' to start the manager with test config." -echo "Run 'jiggablend-runner [url]' to start the runner, e.g., jiggablend-runner http://your-manager:8080" +echo "Run 'jiggablend-runner [url] [runner flags...]' to start the runner." +echo "Example: jiggablend-runner http://your-manager:8080 --force-cpu-rendering --disable-hiprt" echo "Note: Depending on whether you're running the manager or runner, additional dependencies like Blender, ImageMagick, or FFmpeg may be required. See the project README for details." \ No newline at end of file