{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/android-job/issues/399","repository_url":"https://api.github.com/repos/evernote/android-job","labels_url":"https://api.github.com/repos/evernote/android-job/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/evernote/android-job/issues/399/comments","events_url":"https://api.github.com/repos/evernote/android-job/issues/399/events","html_url":"https://github.com/evernote/android-job/issues/399","id":304753659,"number":399,"title":"Schedule DailyJob with Dagger","user":{"login":"naushad-madakiya","id":8583183,"avatar_url":"https://avatars0.githubusercontent.com/u/8583183?v=4","gravatar_id":"","url":"https://api.github.com/users/naushad-madakiya","html_url":"https://github.com/naushad-madakiya","followers_url":"https://api.github.com/users/naushad-madakiya/followers","following_url":"https://api.github.com/users/naushad-madakiya/following{/other_user}","gists_url":"https://api.github.com/users/naushad-madakiya/gists{/gist_id}","starred_url":"https://api.github.com/users/naushad-madakiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naushad-madakiya/subscriptions","organizations_url":"https://api.github.com/users/naushad-madakiya/orgs","repos_url":"https://api.github.com/users/naushad-madakiya/repos","events_url":"https://api.github.com/users/naushad-madakiya/events{/privacy}","received_events_url":"https://api.github.com/users/naushad-madakiya/received_events","type":"User","site_admin":false},"labels":[{"id":250670183,"url":"https://api.github.com/repos/evernote/android-job/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-13T12:57:18Z","updated_at":"2018-03-14T09:29:28Z","closed_at":null,"author_association":"NONE","body":"For Job we can use `IntoMap` and `JobCreator` to schedule job like `jobManager.schedule(MyJob.schedule)`\r\n\r\nFor DailyJob we need to call `DailyJob.schedule(JobRequest, startMs, endMs)` which schedules the job and returns the ID, here we don't have access to JobRequest.\r\n\r\nCan we expose the JobRequest with some public method to provide through DI and schedule it with JobManager?"},"comment":{"url":"https://api.github.com/repos/evernote/android-job/issues/comments/372957084","html_url":"https://github.com/evernote/android-job/issues/399#issuecomment-372957084","issue_url":"https://api.github.com/repos/evernote/android-job/issues/399","id":372957084,"user":{"login":"zishanj","id":1451292,"avatar_url":"https://avatars1.githubusercontent.com/u/1451292?v=4","gravatar_id":"","url":"https://api.github.com/users/zishanj","html_url":"https://github.com/zishanj","followers_url":"https://api.github.com/users/zishanj/followers","following_url":"https://api.github.com/users/zishanj/following{/other_user}","gists_url":"https://api.github.com/users/zishanj/gists{/gist_id}","starred_url":"https://api.github.com/users/zishanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zishanj/subscriptions","organizations_url":"https://api.github.com/users/zishanj/orgs","repos_url":"https://api.github.com/users/zishanj/repos","events_url":"https://api.github.com/users/zishanj/events{/privacy}","received_events_url":"https://api.github.com/users/zishanj/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T09:29:28Z","updated_at":"2018-03-14T09:29:28Z","author_association":"NONE","body":"@naushad-madakiya Using with Dagger does not run the job after you close the app unless you have started the job from `Application.onCreate`. Dagger approach is useless!"}}
{"actor":{"display_login":"zishanj"}}