- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have some problems figuring out something that seems very simple: I want to have task instance that would be executed then rescheduled to be rexecuted (as soon as possible).
I exposed there the problems I got trying to write a task that does this :http://stackoverflow.com/questions/11847689/how-to-reschedule-a-concurrent-task#comment15756307_11847689
Can someone give a very simple working example of how to do this?
Does this require having two tasks, one being the continuation of the other?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved! (as you can see in the link)
I'm reporting here the solution:
this->recycle_to_reexecute();
is deprecated.
Replace by:
this->increment_ref_count();
this->recycle_as_safe_continuation();
Enjoy
P.S.:end of course(in yours case) return NULL from execute.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page