Skip to content

Watcher not triggering task #91

@bschwehn

Description

@bschwehn

Using the task file generated by taskctl init, I would have expected that when running

taskctl watch watcher1

task1 is getting executed, whenever READEME.md is changed. However, task1 is executed only once and changes to README.md have no effect. With --debug the output shows that the change is detected. Below I edited the file twice, both times a debug log is written, but task1 is not executed:

# taskctl --debug watch watcher1
DEBU[0000] starting watcher watcher1
DEBU[0000] watcher "watcher1" is waiting for events in README.md
DEBU[0000] Executing "echo "I'm task1""
I'm task1
DEBU[0005] watcher1: event "WRITE" in file "README.md"
DEBU[0009] watcher1: event "WRITE" in file "README.md"
[No further output]

I have both tried the latest download and building from source. Linux x86_64.

Please let me know if any further information would be helpful. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions