# 'Checkpointing with a task' db file size

**URL:** <https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330>\
**Category:** Cylc Support\
**Created:** [May 7, 2021, 11:34am UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330 "2021-05-07T11:34:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![schaferk](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/schaferk/32/92_2.png) [@schaferk](https://cylc.discourse.group/u/schaferk)\
**Post date:** [May 7, 2021, 11:34am UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/1 "2021-05-07T11:34:18Z")

</div>

began checkpointing with a task as per documentation example 13.1.3.3  
[running-suites.html](https://cylc.github.io/cylc-doc/stable/html/running-suites.html)

Since the db file is in a non-scrubbed location in the directory tree, that is subject to quota,  
i wonder if the db file size grows without limit? or is there some purge mechanism that perhaps keeps the last K checkpoints?

BTW; the checkpointing is very useful.

---

<div class="post-metadata">

**Author:** ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)\
**Post date:** [May 7, 2021, 8:21pm UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/2 "2021-05-07T20:21:02Z")

</div>

Suite DBs do grow without limit, and they store other information besides checkpoints too.

You can configure Cylc 8 to symlink workflow run directories to other locations. (At Cylc 7 that is up to you to do, or if you use Rose with Cylc you can configure _rose suite-run_ to do it.)

> BTW; the checkpointing is very useful.

I wouldn’t come to rely on it as checkpointing has been removed from Cylc 8 for reasons explained in this post: [Proposed removal of scheduler checkpointing capability](https://cylc.discourse.group/t/proposed-removal-of-scheduler-checkpointing-capability/275)

(Cylc 8 has a better way of restarting at earlier points in the graph)

---

<div class="post-metadata">

**Author:** ![schaferk](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/schaferk/32/92_2.png) [@schaferk](https://cylc.discourse.group/u/schaferk)\
**Post date:** [May 8, 2021, 1:06am UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/3 "2021-05-08T01:06:59Z")

</div>

is upgrade to 8 advised?

---

<div class="post-metadata">

**Author:** ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)\
**Post date:** [May 8, 2021, 1:11am UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/4 "2021-05-08T01:11:48Z")

</div>

Getting started with Cylc 8 is certainly advised. You might find it already suits your needs even though it is still in the beta release stage.

---

<div class="post-metadata">

**Author:** ![schaferk](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/schaferk/32/92_2.png) [@schaferk](https://cylc.discourse.group/u/schaferk)\
**Post date:** [May 8, 2021, 1:54pm UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/5 "2021-05-08T13:54:10Z")

</div>

i can certainly initiate a cylc8 version of the same suite.

during the transition,

is there a best practice for pruning the cylc7 suite db?

in the meantime, i/ll research cylc8 workalike checkpointing.

---

<div class="post-metadata">

**Author:** ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)\
**Post date:** [May 12, 2021, 6:45am UTC](https://cylc.discourse.group/t/checkpointing-with-a-task-db-file-size/330/6 "2021-05-12T06:45:51Z")

</div>

> [@schaferk](#):
>
> is there a best practice for pruning the cylc7 suite db?

I haven’t personally heard of one getting so big that it was a problem. Others might be able to advise, but I presume you could use the `sqlite3` command line tool to delete loads of entries if necessary. (This probably is something we should document!)

> [@schaferk](#):
>
> in the meantime, i/ll research cylc8 workalike checkpointing.

Not much documentation yet, sorry (in progress…). Basically, in Cylc 8 you can `cylc trigger --reflow` any task in the graph, past or future, and it will flow on as normal from that point. Restart from a state checkpoint recorded in the DB was really only required because Cylc 7 (and earlier) did not have this “reflow” capability.
