locked
What is the best way to delete completed tasks? RRS feed

  • Question

  • Hi

    I have a single job and about 200-500 tasks per day. What is the best way to delete these completed tasks? Should I create external watcher to cleanup or there is an option for tasks that will be deleted automatically if they were completed successfully?

    Any ideas or suggestions are more than welcome.

    Victor



    Wednesday, October 25, 2017 6:21 PM

Answers

  • Hi Victor,

    If you are concerned about tasks taking up disk space, then you can specify the retentionTime on the TaskContstraints. Task data is deleted by the Batch system sometime after the retention time expires.

    However, the task itself is not deleted from the system (just the files on the node that executed the task). If you need to delete your tasks (or jobs), you will need to create an external process that does this. 

    Cheers,

    Fred

    • Marked as answer by Victor Kiselev Wednesday, October 25, 2017 8:31 PM
    Wednesday, October 25, 2017 8:06 PM

All replies

  • Hi Victor,

    If you are concerned about tasks taking up disk space, then you can specify the retentionTime on the TaskContstraints. Task data is deleted by the Batch system sometime after the retention time expires.

    However, the task itself is not deleted from the system (just the files on the node that executed the task). If you need to delete your tasks (or jobs), you will need to create an external process that does this. 

    Cheers,

    Fred

    • Marked as answer by Victor Kiselev Wednesday, October 25, 2017 8:31 PM
    Wednesday, October 25, 2017 8:06 PM
  • Got it, thanks!
    Wednesday, October 25, 2017 8:31 PM