You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same set up on a number of different Samsung devices. A scheduled job that runs a bash script (test.sh) which simply writes the result of the "date" command to a file.
The results of using the termux-job-scheduler tool seem to fall into one of two camps across these devices. Either the scheduling is consistent or it is completely random.
Problem description
I have the same set up on a number of different Samsung devices. A scheduled job that runs a bash script (test.sh) which simply writes the result of the "date" command to a file.
The results of using the termux-job-scheduler tool seem to fall into one of two camps across these devices. Either the scheduling is consistent or it is completely random.
The scheduled job is as follows:
Pending Job 0: /data/data/com.termux/files/home/bin/test.sh (periodic: 3600000ms) (persisted) (battery not low) (network: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&TRUSTED&VALIDATED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 10229 UnderlyingNetworks: Null] ])
Below is the output from an example device (SM-G973F) where the results are consistent:
Below is the output from an example device (SM-T725) where the results are completely random:
On all devices, Battery Saver is off and both Termux and Termux API have their app battery usage set to "Unrestricted".
Could this be a problem with either Termux or the Termux API, or is it simply the results of an underlying problem with the OS?
I've had a look in the LineageOS and Android issue trackers but can't see anything obvious to me.
Steps to reproduce
Schedule a job to run every hour which writes the date to a log file (see above).
Expected behavior
The job should run consistently every hour (more or less).
Additional information
Happy to supply any additional information, or perform additional testing, as required.
Any help or advice is appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: