question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue while scheduling Daily Jobs using 1.2.0

See original GitHub issue

I am using 1.2.0-RC5 version of the library to schedule a daily job. I followed this link and everything is working fine and scheduled job of sending notification is shown but when I click on notification and come back to my activity I am getting these logs.

E/JobExecutor: Crashed job{id=1, finished=true, result=FAILURE, canceled=false, periodic=false, class=DailySyncJob, tag=DailySyncJob} java.lang.IllegalArgumentException: startInMs must be greater than 0 at com.evernote.android.job.util.JobPreconditions.checkArgumentPositive(JobPreconditions.java:165) at com.evernote.android.job.JobRequest$Builder.setExecutionWindow(JobRequest.java:714) at com.evernote.android.job.DailyJob.schedule(DailyJob.java:102) at com.evernote.android.job.DailyJob.onRunJob(DailyJob.java:141) at com.evernote.android.job.Job.runJob(Job.java:121) at com.evernote.android.job.JobExecutor$JobCallable.runJob(JobExecutor.java:165) at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:150) at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:133) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)

Major concern is that my Daily job that is already scheduled is getting rescheduled. Let me know if anyone find any solution of this.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
vRallevcommented, Oct 4, 2017

@thisismohitgupta This workaround is not needed anymore.

@anukools Thanks again for reporting. The issue is fixed in RC6 (which should be available in 30 minutes).

1reaction
thisismohitguptacommented, Oct 4, 2017

@anukools I think this depends on the OS and there are many other factors involved. I think you should look into firebase cloud messaging for notifications its more robust

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scheduling of tasks with the Android JobScheduler - Tutorial
This tutorial describes how to schedule tasks in Android with the JobScheduler ... Here are example when you would use this job scheduler:....
Read more >
Quartz.NET scheduler doesn't fire jobs/triggers once deployed
It works fine on both enviroments, tested with all the code precompiled. The problem is that, once deployed on a remote server (win...
Read more >
APScheduler Documentation - Read the Docs
The simplest way to schedule jobs using the built-in triggers is to use ... day of every month on every year at 20...
Read more >
14 Using the Scheduler Application - Oracle Help Center
You can schedule jobs by time (daily, weekly, monthly, yearly) or based on a ... When you define a scheduled job, the parameters...
Read more >
Automate Schedule - Fortra
Added SQL Server 2014 to SQL Server job command. Other Updates. Fixed OutOfMemoryException when editing job suite member jobs. Fixed issue with mastertostandby ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found