这是indexloc提供的服务,不要输入任何密码
Skip to content

termux-job-scheduler hangs indefinitely when scheduling a new job #276

@xalexalex

Description

@xalexalex

Problem description
termux-job-scheduler is unable to schedule a job, and hangs when I try to.

Steps to reproduce

cat > ~/script <<EOF
#!/data/data/com.termux/files/usr/bin/bash
termux-notification --content "$(date)"
EOF
chmod +x ~/script
termux-job-scheduler --script ~/script --period-ms 1800000

Expected behavior
script is scheduled to run every 30m ± 5m and termux-job-scheduler exits.

Actual behavior
the script runs once, but termux-job-scheduler hangs. termux-job-scheduler --pending run in another session doesn't output anything.

Additional information
termux-info:

Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 4.4.23+ #1 SMP PREEMPT Tue Jun 12 17:03:20 CST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
9
Device manufacturer:
HUAWEI
Device model:
PRA-LX1

Log: log-adb.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions