{"action":"created","issue":{"url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/99","repository_url":"https://api.github.com/repos/vikeri/react-native-background-job","labels_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/99/comments","events_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/99/events","html_url":"https://github.com/vikeri/react-native-background-job/issues/99","id":345609569,"node_id":"MDU6SXNzdWUzNDU2MDk1Njk=","number":99,"title":"Run a job right away from foreground?","user":{"login":"cristianocca","id":8573267,"node_id":"MDQ6VXNlcjg1NzMyNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/8573267?v=4","gravatar_id":"","url":"https://api.github.com/users/cristianocca","html_url":"https://github.com/cristianocca","followers_url":"https://api.github.com/users/cristianocca/followers","following_url":"https://api.github.com/users/cristianocca/following{/other_user}","gists_url":"https://api.github.com/users/cristianocca/gists{/gist_id}","starred_url":"https://api.github.com/users/cristianocca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristianocca/subscriptions","organizations_url":"https://api.github.com/users/cristianocca/orgs","repos_url":"https://api.github.com/users/cristianocca/repos","events_url":"https://api.github.com/users/cristianocca/events{/privacy}","received_events_url":"https://api.github.com/users/cristianocca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-30T04:44:17Z","updated_at":"2018-08-29T13:35:23Z","closed_at":null,"author_association":"NONE","body":"Is it possible from the app (react) to run a registered job right away as a headless job? In order to avoid waiting for it to be picked up.\r\n\r\nUse case is this: An uploader queue that will grab stuff from the database and upload to a server over time. If the user has the app opened it's ideal that the uploads happen right away but are also not interrupted on app pause (i.e, going to another app).\r\n\r\nRight now, if a job is scheduled you will still need to wait for the scheduler to pick it up over time (every 15 minutes).\r\n\r\nSimply running the upload code as a regular function is not viable since app suspend can stop the whole process and it looks like code running as a headless job might be able to continue even if the app is suspended."},"comment":{"url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/comments/416955582","html_url":"https://github.com/vikeri/react-native-background-job/issues/99#issuecomment-416955582","issue_url":"https://api.github.com/repos/vikeri/react-native-background-job/issues/99","id":416955582,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjk1NTU4Mg==","user":{"login":"vikeri","id":846688,"node_id":"MDQ6VXNlcjg0NjY4OA==","avatar_url":"https://avatars2.githubusercontent.com/u/846688?v=4","gravatar_id":"","url":"https://api.github.com/users/vikeri","html_url":"https://github.com/vikeri","followers_url":"https://api.github.com/users/vikeri/followers","following_url":"https://api.github.com/users/vikeri/following{/other_user}","gists_url":"https://api.github.com/users/vikeri/gists{/gist_id}","starred_url":"https://api.github.com/users/vikeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikeri/subscriptions","organizations_url":"https://api.github.com/users/vikeri/orgs","repos_url":"https://api.github.com/users/vikeri/repos","events_url":"https://api.github.com/users/vikeri/events{/privacy}","received_events_url":"https://api.github.com/users/vikeri/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T13:35:23Z","updated_at":"2018-08-29T13:35:23Z","author_association":"OWNER","body":"You mean keeping the app alive? That's not supported. I think you'll have to start a foregroundService in order for that to work."}}
{"actor":{"display_login":"vikeri"}}