Skip to content

Commit edc4faf

Browse files
committed
job-scheduler: document minimum for period-ms
Since Android N, period-ms cannot be lower than 900.000 (15 minutes)
1 parent 60af048 commit edc4faf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/termux-job-scheduler

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ show_usage () {
1212
echo "Options for scheduling:"
1313
echo " --script text path to the script to be called"
1414
echo " --job-id int job id (will overwrite any previous job with the same id)"
15-
echo " --period-ms int schedule job approximately every period-ms milliseconds (default 0 means once)"
15+
echo " --period-ms int schedule job approximately every period-ms milliseconds (default 0 means once)."
16+
echo " Note that since Android N, the minimum period is 900.000ms (15 minutes)."
1617
echo " --network text run only when this type of network available (default any): any|unmetered|cellular|not_roaming|none"
1718
echo " --battery-not-low boolean run only when battery is not low, default true (at least Android O)"
1819
echo " --storage-not-low boolean run only when storage is not low, default false (at least Android O)"

0 commit comments

Comments
 (0)