User Story #108 (closed)
Opened 18 years ago
Closed 17 years ago
API needed for running background/asynchronous TASKS
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Milestone: | 3.0-Beta2 |
Component: | API | Keywords: | iteration5 |
Cc: | Story Points: | n.a. | |
Sprint: | n.a. | Importance: | n.a. |
Total Remaining Time: | n.a. | Estimated Remaining Time: | n.a. |
Description
The Task API should be responsible for all asynchronous/background/timed actions within the server.
Things to consider:
- Abstract Task && Task Inheritance
- Task becomes a model object which can be persisted to the DB.
- Specific tasks can then inherit and share the DB table. E.g. Task->Importer (can be viewed generically with SEAM)
- Profiles for Defining Tasks
- sets some variables (allowCreateOMEISDirectory=false e.g.)
- AntTask?
- reuse AntLauncher? for things like creating OMEIS directory
- buildException -> Task Exception
- if it happens to be a Startup Task, server doesn't startup.
- use spring.AppListener? to listen for events to do things (essentially our Startup)
What exactly are the requirements? Initial/future tasks?
Originally http://bugs.openmicroscopy.org.uk/show_bug.cgi?id=658
Change History (4)
comment:1 Changed 17 years ago by jmoore
- Milestone changed from Unscheduled to 3.0-M4
comment:2 Changed 17 years ago by jmoore
r1054 adds an initial Task API. Specifically the ome.util.tasks.Task abstract class.
comment:3 Changed 17 years ago by jmoore
Note the use of "fork=yes" in the usage from ant. Until #464 (AntAdapter) is fixed, running tasks from ant requires a <java/> task, and fork must be set, or you'll have weird problems a la:
ClassCastException: [Ljava.lang.StackTraceElement...
etc.
comment:4 Changed 17 years ago by jmoore
- Keywords iteration5 added
- Resolution set to fixed
- Status changed from new to closed
Tasks work fine for running from the command-line. See #667 for the more asynchronous side of things.
Rescheduling as milestone:3.0-M4 story (for #407)