Task scheduling #93

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

Comments

Projects
None yet
7 participants
@jwe-apple
Member

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 referenced this issue Apr 22, 2015

Closed

Task list #94

@rsanchezsaez

This comment has been minimized.

Show comment
Hide comment
@rsanchezsaez

rsanchezsaez Apr 23, 2015

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@jwe-apple

jwe-apple Apr 23, 2015

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@httang12

httang12 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?

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

This comment has been minimized.

Show comment
Hide comment
@peculiar

peculiar May 7, 2015

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@YuanZhu-apple

YuanZhu-apple Oct 7, 2015

Member

I am working this.

Member

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

This comment has been minimized.

Show comment
Hide comment
@nageshkumarmishra

nageshkumarmishra Apr 25, 2017

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

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

This comment has been minimized.

Show comment
Hide comment
@Pariecemckinney-apple

Pariecemckinney-apple Aug 25, 2017

Contributor

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

Contributor

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