# Pending tasks timeout

**URL:** <https://forum.genieacs.com/t/pending-tasks-timeout/1994>\
**Category:** Uncategorized\
**Created:** [September 7, 2021, 1:16pm UTC](https://forum.genieacs.com/t/pending-tasks-timeout/1994 "2021-09-07T13:16:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bajojoba](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@bajojoba](https://forum.genieacs.com/u/bajojoba)\
**Post date:** [September 7, 2021, 1:16pm UTC](https://forum.genieacs.com/t/pending-tasks-timeout/1994/1 "2021-09-07T13:16:37Z")

</div>

Hello,

I have to say that I love this product. I really think that you’ve done a great job and can’t imagine how I would manage my CPEs in any other way.

Yesterday my service got depricated and I didn’t know why until I saw that there war a couple of million pending tasks which were produced by some 3rd party application that is collecting data from the CPEs. Some of them were 6 months old or even older. Is there a posibility to set somekind of task timeout so that task would get deleted after some time? At the moment I’m running cronjob to delete old tasks.

Thanks and BR,  
Janko

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [September 7, 2021, 2:20pm UTC](https://forum.genieacs.com/t/pending-tasks-timeout/1994/2 "2021-09-07T14:20:20Z")

</div>

Which version of GenieACS are you using? The handling of tasks changed between v1.1 and v1.2.

---

<div class="post-metadata">

**Author:** ![bajojoba](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@bajojoba](https://forum.genieacs.com/u/bajojoba)\
**Post date:** [September 8, 2021, 6:50am UTC](https://forum.genieacs.com/t/pending-tasks-timeout/1994/3 "2021-09-08T06:50:39Z")

</div>

Thanks for quick answer.  
it’s version 1.2.3

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [September 14, 2021, 11:33pm UTC](https://forum.genieacs.com/t/pending-tasks-timeout/1994/4 "2021-09-14T23:33:31Z")

</div>

If you’re using the API, you can set `expire` property in the task object to have it automatically get deleted after set expire time.
