# Application says "No task available"

**URL:** <https://support.prodi.gy/t/application-says-no-task-available/4712>\
**Category:** Uncategorized\
**Tags:** usage, solved, streams\
**Created:** [September 22, 2021, 10:02am UTC](https://support.prodi.gy/t/application-says-no-task-available/4712 "2021-09-22T10:02:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sangdeep](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/sangdeep/32/2423_2.png) [@sangdeep](https://support.prodi.gy/u/sangdeep)\
**Post date:** [September 22, 2021, 10:02am UTC](https://support.prodi.gy/t/application-says-no-task-available/4712/1 "2021-09-22T10:02:17Z")

</div>

I'm using prodigy for text classification,, we faced issue while annotation, so it stops before completing the task, the actual message says "No Tasks Available". We're using custom recipe.. Here's the code

import prodigy  
from prodigy.components.preprocess import add\_tokens  
from prodigy.components.loaders import JSONL  
import spacy

@prodigy.recipe(  
"classification-context",  
dataset=("The dataset to save to", "positional", None, str),  
file\_path=("Path to texts", "positional", None, str),  
)  
def cat\_facts\_ner(dataset, file\_path, lang="en"):

```
blocks = [
    {"view_id": "choice", "text": None},
    {"view_id": "text_input", "field_rows": 5, "field_label": "Feedback"}
]

# nlp = spacy.blank(lang) # blank spaCy pipeline for tokenization
stream = JSONL(file_path) # load in the JSONL file

stream = add_options(stream) # add label options to each task
# stream = add_tokens(nlp, stream) # tokenize the stream for ner_manual

return {
    "dataset": dataset, # the dataset to save annotations to
    "view_id": "blocks", # set the view_id to "blocks"
    "stream": list(stream), # the stream of incoming examples
    "config": {
        "blocks": blocks # add the blocks to the config
    }
}

```

def add\_options(stream):  
# Helper function to add options to every task in a stream  
options = [  
{"id": 3, "text": "Positive"},  
{"id": 2, "text": "Negative"},  
{"id": 1, "text": "Neutral"},  
{"id": 0, "text": "Ambivalent"}  
]

```
for task in stream:
    task["options"] = options
    yield task
```

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [September 23, 2021, 7:46am UTC](https://support.prodi.gy/t/application-says-no-task-available/4712/2 "2021-09-23T07:46:34Z")

</div>

Hi! Did you also post [this thread](https://support.prodi.gy/t/no-task-available-with-custom-recipe-for-text-classification/4693) by any chance? The code looks almost identical. If so, I already left a reply with more questions here:

> [@No task available with custom recipe for text classification](https://support.prodi.gy/t/no-task-available-with-custom-recipe-for-text-classification/4693/4):
>
> This all looks reasonable! Just one quick comment: the auto\_count\_stream and total\_examples\_target settings were both only introduced in v1.11, so they won't have any effect in v1.10. So if you want to use them, you should upgrade to v1.11 – if you can, this would be interesting to try in a separate environment to see if it solves the problem you're seeing. I've tried out your recipe with the same settings and some random data file and I can't seem to reproduce the problem thinking Some thing…

---

<div class="post-metadata">

**Author:** ![sangdeep](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/sangdeep/32/2423_2.png) [@sangdeep](https://support.prodi.gy/u/sangdeep)\
**Post date:** [September 28, 2021, 2:59pm UTC](https://support.prodi.gy/t/application-says-no-task-available/4712/3 "2021-09-28T14:59:50Z")

</div>

No this is first time i posted here..  
Many thanks.. "force\_stream\_order": true solved the problem.. Could you please add this to documentation i noticed that it's not mentioned there [https://prodi.gy/docs/install](https://prodi.gy/docs/install)

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [September 28, 2021, 3:41pm UTC](https://support.prodi.gy/t/application-says-no-task-available/4712/4 "2021-09-28T15:41:45Z")

</div>

Glad it's working now! And the setting has become obsolete in newer versions of Prodigy, it's only relevant for v1.10 and below, which is why we don't focus on it in the docs anymore 🙂
