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

error with long running command #4

Open
jackywu opened this issue Apr 1, 2024 · 2 comments
Open

error with long running command #4

jackywu opened this issue Apr 1, 2024 · 2 comments

Comments

@jackywu
Copy link

jackywu commented Apr 1, 2024

I run tkinter loop in main.py, after one modification in main.py arelo will restart it process twice.

# arelo  -p '*.py'  -i '.*' -r  -v   -- .venv/bin/python main.py
2024/04/01 14:33:33 [ARELO] command:  [".venv/bin/python" "main.py"]
2024/04/01 14:33:33 [ARELO] targets:  ["./"]
2024/04/01 14:33:33 [ARELO] patterns: ["*.py"]
2024/04/01 14:33:33 [ARELO] ignores:  [".*"]
2024/04/01 14:33:33 [ARELO] filter:   [no events]
2024/04/01 14:33:33 [ARELO] delay:    1s
2024/04/01 14:33:33 [ARELO] signal:   SIGTERM
2024/04/01 14:33:33 [ARELO] restart:  true
2024/04/01 14:33:33 [ARELO] watching target: "."
2024/04/01 14:33:33 [ARELO] watching target: "__pycache__"
2024/04/01 14:33:33 [ARELO] watching target: "."
2024/04/01 14:33:33 [ARELO] start: .venv/bin/python main.py
2024/04/01 14:33:38 [ARELO] event: CHMOD "main.py"
2024/04/01 14:33:38 [ARELO] event: WRITE "main.py"
2024/04/01 14:33:38 [ARELO] triggered: "main.py"
2024/04/01 14:33:38 [ARELO] wait 1s
2024/04/01 14:33:39 [ARELO] command error: process canceled: exit status 1
2024/04/01 14:33:39 [ARELO] start: .venv/bin/python main.py
2024/04/01 14:33:39 [ARELO] event: CHMOD "main.py"
2024/04/01 14:33:39 [ARELO] triggered: "main.py"
2024/04/01 14:33:39 [ARELO] wait 1s
2024/04/01 14:33:40 [ARELO] command error: process canceled: exit status 1
2024/04/01 14:33:40 [ARELO] start: .venv/bin/python main.py

what happend on 2024/04/01 14:33:39 [ARELO] command error: process canceled: exit status 1
and why twice ?

thanks for your project.

@makiuchi-d
Copy link
Owner

At 14:33:38, event CHMOD and WRITE were detected on "main.py",
and that triggered process cancellation at 14:33:39.

The second cancellation at 14:33:40 was triggered by the event CHMOD at 14:33:39.

This cancellation may be prevented by using the --filter CHMOD option.

@makiuchi-d
Copy link
Owner

see also: #3

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

2 participants