# Long tasks example # # This example simulate a workflow with one or more tasks # that takes a bit too long to complete for such workflows use: # # fzz -n --fail-fast # fzz -nt @quick --fail-fast # fzz -nt @slow --fail-fast # # See tests/watching_with_non_block_flag.rs # - name: run long task 1 @quick run: "bash examples/longtask.sh long 1" change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?" - name: run long task 2 @quick run: "bash examples/longtask.sh long 2" change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?" run_on_init: true - name: run long task 3 @quick run: "bash examples/longtask.sh short 3" change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?" - name: run long task 4 @slow run: "bash examples/longtask.sh short 4" change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?" - name: run long task 5 run on init @slow run: - "sleep 3" - "bash examples/longtask.sh short 5" change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?" - name: run long task 6 run: ["bash examples/longtask.sh list 3", "bash examples/longtask.sh list 4"] change: - "examples/workdir/*.txt" ignore: - "examples/workdir/ignored/**/*.txt" - "examples/workdir/another_ignored_file.foo" # Ignoring VIM backup files - "**/*~" - "**/*.sw?"