Skip to content

add --debounce-interval to watchmedo shell-command #1123

@andrader

Description

@andrader

add --debounce-interval to watchmedo shell-command subcommand

I am trying to restart a container and attach to it on python code changes:

watchmedo shell-command --patterns="*.py" --recursive --command='docker-compose restart worker && docker-compose attach worker'

But it is triggering many times and duplicating logs. It guess because on save, I also have auto-formatters that trigger a new file save.

I guess --wait or --drop do not work in this case because the attach command never ends.

Is there a way to delay watching changes after a first time change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions