Android-job: How to get info about daily job run?

Created on 27 Sep 2018  路  7Comments  路  Source: evernote/android-job

Well I have setup the DailyJob and it runs fine. Now i want to see whether or not my job ran or not? I have setup the daily job to ran between 1 to 2 am with network constraint and linear back-off as well. I just wanted to know How can i see that the job is ran at any time? Also please also mention that how can i check all the jobs that are scheduled in android via evernote-job?

question

Most helpful comment

I'm closing this ticket, this is not an issue of the library.

All 7 comments

Once a job ran it is removed from the database. You need to save these information yourself. You can get all jobs through JobManager.instance().getAll**()

@vRallev , I got your point. Let me tell you my scenario. I have created 2 Jobs which start Immediately and a separate Daily job which will gonna schedule from one of the 2 jobs which start immediately. I have Registered those 2 jobs inside JobCreator, but not the Daily Job. Do i need to register it inside jobCreator subclasss to run it? I have seen the Evernote db via File Explorer and it shows 2 jobs there which are registered via jobCreator subclass, but not that daily Job which is gonna sceduled via one of the immediately running Jobs. Will this daily job still be scheduled or not, I am unable to find that answer.

The JobCreator interface only maps tags to specific job classes. So yes, you need to add your daily job there, too.

@vRallev , But without mapping of the daily job it runs/schedules as well. I have seen it being scheduled via logs. Please exaplain me that. I mean it gets scheduled via immediate Job from the code that i have written. So still i need to Add Daily Job inside the Jobcreator Interface to work it properly? is it unstable(might not work properly?)?

@vRallev , Hello sir, I want to run a specific Job if it's not running. I have seen this Method JobManager.instance().getJobRequest() which gives me JobRequest If the Job is pending else null, But in this method the parameter is Job Id. How can i determine JobId for a specific Job By Tag? In Evernote-Job we set Jobs by TAGs and not IDs. please clear my doubt. Thanks in advance.

JobManager.instance().getAllJobRequestsForTag("Tag")

I'm closing this ticket, this is not an issue of the library.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruhul015 picture ruhul015  路  4Comments

v4-adi picture v4-adi  路  3Comments

ExploiTR picture ExploiTR  路  6Comments

tatocaster picture tatocaster  路  6Comments

Haoxiqiang picture Haoxiqiang  路  3Comments