# Need help on using workling/starling

**URL:** <https://www.ruby-forum.com/t/need-help-on-using-workling-starling/165183>\
**Category:** Rails\
**Created:** [April 9, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/need-help-on-using-workling-starling/165183 "2009-04-09T23:23:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuvkir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kuvkir](https://www.ruby-forum.com/u/kuvkir)\
**Post date:** [April 9, 2009, 11:23pm UTC](https://www.ruby-forum.com/t/need-help-on-using-workling-starling/165183/1 "2009-04-09T23:23:01Z")

</div>

Hello!

My rails app’s using a queue of tasks that should be handled  
asynchronously.  
Task handling should be done in the following way:

1. rails app does some basic logic and puts the further work into the  
queue of tasks.
2. task manager pops the task off the queue and either delegates it to  
a worker thread or puts the task back to the queue.
3. then the worker basically does its job.

I’m currently looking into starling/workling but can’t see how to  
implement the task manager logic on top of it. It looks that by using  
starling/working once a task is in the queue, there is no way to  
control its execution, e.g. choose the worker to run the task or  
decide if the task should be sent back or dropped.

What do you think can solve my problem?

Thanks,  
Kirill
