-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cant add multiple jobs through termux-job-scheduler? #368
Comments
i see similar behaviour. From what i can tell, both of my jobs are being created and are running, its just that the "pending" command is not returning the list of scheduled jobs correctly... At least in my case, running the "pending" command repeatedly, returns different results:
...
seems like there could be an issue with the |
I get the same problem once I've updated termux & termux-api, any solution please without downgrade ? |
ive created MR #391 to resolve this issue |
Problem description
scheduling multiple jobs through termux-job-scheduler with persisted option does not add jobs to the queue, instead it just overwrites the previous one.
Steps to reproduce
termux-job-scheduler -s /data/data/com.termux/files/home/script2.sh --persisted true --period-ms 300000 --job-id 1
termux-job-scheduler -s /data/data/com.termux/files/home/script2.sh --persisted true --period-ms 300000 --job-id 2
these commands only lead to the last job scheduled at job-id 2.
Pending Job 2: /data/data/com.termux/files/home/script2.sh (periodic: 900000ms) (persisted) (battery not low) (network: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&VALIDATED Uid: 10288] ])
Expected behavior
there should be two jobs scheduled with job-id 1 and job-id 2 for each scripts.
Additional information
The text was updated successfully, but these errors were encountered: