termux / termux/termux-api

Expose setPeriodic (..., flexMillis) in termux-job-scheduler

Open
#703 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Expose setPeriodic (..., flexMillis) in termux-job-scheduler for more accurate job run.

setPeriodic (long intervalMillis) - Specify that this job should recur with the provided interval, not more than once per period. You have no control over when within this interval this job will be executed, only the guarantee that it will be executed at most once within this interval.

vs

setPeriodic (long intervalMillis, long flexMillis) - Specify that this job should recur with the provided interval and flex. The job can execute at any time in a window of flex length at the end of the period.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the termux-job-scheduler entry point and trace how the existing interval argument reaches Android's periodic scheduling API. Add support for the flexMillis value described in the issue, preserving the existing interval behavior. Done means the command accepts the additional value and schedules the job with the requested flex window.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
cli, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.