Question: I writing this code in Eclipse but it tells me that it has multiple markers at 2 lines. I've tried to solve the problem, but more markers occur. The errors that occur are at line 15 and 18

```
public class Cup {
    private Dice d1 = new Dice();
    private Dice d2 = new Dice();

    public void roll(){
        d1.roll();
        d2.roll();
    }

    public int getvalue1(){
        return d1.getValue();
    }
    public int getvalue2(){
        return d2.getValue();
    }
    public int getSum(){
        return d1.getValue() + d2.getValue();
    }
}

```

Answer: 
If you look at the [celery DOCS on tasks](http://docs.celeryproject.org/en/latest/reference/celery.app.task.html) you see that to call a task synchronosuly, you use the apply() method as opposed to the apply\_async() method.

So in your case you could use:

```
 reminder.apply(args=[number])

```

The DOCS also note that:  

`If the CELERY_ALWAYS_EAGER setting is set, it will be replaced by a local apply() call instead.`

Thanks to @JivanAmara who in the comments reiterated that when using apply(), the task will run locally(in the server/computer in which its called). And this can have ramifications, if you intended to run your tasks across multiple servers/machines.
if you want to fire each call one after another, why dont you wrap all the calls in one task

```
@task
def make_a_lot_of_calls(numbers):
    for num in numbers:
        # Assuming that reminder blocks till the call finishes
        reminder(number)

def make_calls(request):
    make_a_lot_of_calls.delay(phone_numers)                          
    return redirect('live_call_updates') 

```