Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task scheduling #93

Closed
jwe-apple opened this issue Apr 22, 2015 · 7 comments
Closed

Task scheduling #93

jwe-apple opened this issue Apr 22, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@jwe-apple
Copy link
Member

@jwe-apple jwe-apple commented Apr 22, 2015

We think that maintaining a list of tasks, and scheduling when they need to occur, is going to be common to apps using ResearchKit.

AppCore has a task scheduling component, which stores schedules for tasks in a CoreData database. Schedules are defined with cron-like expressions. It interacts with a particular back-end service to obtain schedules, and then stores and applies these schedules. See APCTasksReminderManager, APCScheduler, etc.

This task is to review the AppCore task scheduler, and propose how to generalize it for ResearchKit in a way that's more agnostic to the back-end, and can function using local notifications only.

Note that work is continuing on AppCore at the moment to improve support for offsets for the starting point of schedules, and better control of "grace periods" (how long after a scheduled event time the user has to respond).

Unit tests required!

See also #94

@jwe-apple jwe-apple mentioned this issue Apr 22, 2015
@rsanchezsaez
Copy link
Contributor

@rsanchezsaez rsanchezsaez commented Apr 23, 2015

The scheduling tests in AppCore seem not to pass. Show we fix those as pre-requisite to this?

@jwe-apple
Copy link
Member Author

@jwe-apple jwe-apple commented Apr 23, 2015

No, just open an issue for that. There is continuing work on AppCore and I'll make sure the relevant team sees it.

@httang12
Copy link

@httang12 httang12 commented May 7, 2015

I am starting looking into the APCScheduler architecture for scheduling and decoupling it from AppCore as I needed that functionality for the project I am working on. But from a road map perspective is the scheduling component going to be part of researchkit core or still live in appcore?

@peculiar
Copy link
Member

@peculiar peculiar commented May 7, 2015

There's ongoing work to refactor the schedule and scheduler concepts. The schedule classes will not have any external dependencies, except to utility code. The scheduler class will need additional refactoring to eliminate undesired dependencies.

@YuanZhu-apple
Copy link
Member

@YuanZhu-apple YuanZhu-apple commented Oct 7, 2015

I am working this.

@YuanZhu-apple YuanZhu-apple added this to the Next Release milestone Jan 14, 2016
@YuanZhu-apple YuanZhu-apple self-assigned this Jan 20, 2016
@nageshkumarmishra
Copy link

@nageshkumarmishra nageshkumarmishra commented Apr 25, 2017

Is decoupling of APCScheduler is done ? One of my projects has a requirement of scheduling components.

syoung-smallwisdom added a commit to syoung-smallwisdom/ResearchKit that referenced this issue Jul 19, 2017
@Pariecemckinney-apple
Copy link
Contributor

@Pariecemckinney-apple Pariecemckinney-apple commented Aug 25, 2017

Closing due to inactivity. Please feel free to reopen if you would like the conversation to continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.