# Auto save when no more tasks left

**URL:** <https://support.prodi.gy/t/auto-save-when-no-more-tasks-left/6042>\
**Category:** Uncategorized\
**Created:** [October 24, 2022, 10:30pm UTC](https://support.prodi.gy/t/auto-save-when-no-more-tasks-left/6042 "2022-10-24T22:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![provRaminHamediZavie](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/provraminhamedizavie/32/3365_2.png) [@provRaminHamediZavie](https://support.prodi.gy/u/provRaminHamediZavie)\
**Post date:** [October 24, 2022, 10:30pm UTC](https://support.prodi.gy/t/auto-save-when-no-more-tasks-left/6042/1 "2022-10-24T22:30:46Z")

</div>

we would like to automatically save the stream when it is exhausted (no more tasks left) or when closing a tab. Wondering if this can be enabled or if there are any examples of it.

For example when I run:

prodigy textcat.manual news\_topics ./new\_headlines\_short.jsonl --label Technology,Politics,Economy,Entertainment

and my dataset is this:

{"text":"Uber\u2019s Lesson: Silicon Valley\u2019s Start-Up Machine Needs Fixing","meta":{"source":"The New York Times"}} {"text":"Pearl Automation, Founded by Apple Veterans, Shuts Down","meta":{"source":"The New York Times"}} {"text":"How Silicon Valley Pushed Coding Into American Classrooms","meta":{"source":"The New York Times"}} {"text":"Women in Tech Speak Frankly on Culture of Harassment","meta":{"source":"The New York Times"}}

It seems like prodigy does not auto send the example when the stream is exhausted -\> (the give\_answers endpoint)

 ![Screen Shot 2022-10-24 at 5.24.15 PM](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/9/9ab9392ace3b4c9a51c4de4fd59ac21cc98a664c.jpeg)

And to invoke give\_answers I have to hit save.

 ![Screen Shot 2022-10-24 at 5.29.25 PM](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/8/84d1cf938eebaf90f6098910fd1172433b830374.jpeg)

Wondering if there could be such feature to give control over annotated examples that are smaller than batch size.

Thanks so much

---

<div class="post-metadata">

**Author:** ![koaning](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/koaning/32/230_2.png) [@koaning](https://support.prodi.gy/u/koaning)\
**Post date:** [October 26, 2022, 9:10am UTC](https://support.prodi.gy/t/auto-save-when-no-more-tasks-left/6042/2 "2022-10-26T09:10:08Z")

</div>

I just loaded an `examples.jsonl` with a single example and was able to confirm that when you're presented with this interface after a single annotation.

 ![CleanShot 2022-10-26 at 11.04.36](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/5/569ae03e50eec8bf6583071caada598f5ca47848.png)

When I shut down Prodigy after this, indeed no examples are saved.

## Quick Fix

I'd need to check with the Prodigy team about this though. Part of me feels like it could be a feature to automatically save the examples when you hit the end of the queue, but it also feels a bit like an anti-pattern because the interface, as you mention, does provide a solution.

 ![sol](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/0/04e10db5d6bef6f2c3bb1f484c1324564c3eb637.png)

I can imagine it can be un-intuitive to some users, but it does seem like a valid quick fix for now, mainly because it's also the general mechanic in Prodigy to ensure annotations actually get stored. I'll pick this up internally to see what other devs think about this though.
