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

cant add multiple jobs through termux-job-scheduler? #368

@ashjas

Description

@ashjas

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

  • Termux application version: 0.99
  • Android OS version: 10
  • Device model: MiA1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions