# Cylc keepalive best practices

**URL:** <https://cylc.discourse.group/t/cylc-keepalive-best-practices/1271>\
**Category:** Cylc Support\
**Created:** [December 5, 2025, 12:04am UTC](https://cylc.discourse.group/t/cylc-keepalive-best-practices/1271 "2025-12-05T00:04:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejhyer](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/ejhyer/32/307_2.png) [@ejhyer](https://cylc.discourse.group/u/ejhyer)\
**Post date:** [December 5, 2025, 12:04am UTC](https://cylc.discourse.group/t/cylc-keepalive-best-practices/1271/1 "2025-12-05T00:04:37Z")

</div>

```auto
cylc-flow 8.4.2 pyh3a29b38_0 conda-forge
cylc-flow-base 8.4.2 pyh707e725_0 conda-forge
cylc-ui 1.0.0 ha770c72_0 conda-forge

```

Hi cylc wizards,

This is not a problem with cylc whatsoever, but this community is best equipped to answer it. Consider 3 failure modes:

1. cylc suite stops;
2. cylc daemon dies;
3. machine dies;

For #1 the solution is within cylc, and cylc has great capabilities to set notification triggers to catch these events.

For #3 “the machine went down and nobody noticed” is an edge case unless you are using disposable VMs in a cloud environment, and in any case it’s easy to make/find a dashboard to ping the machine.

I have been having issues in the #2 category. I don’t know the root causes, and they aren’t necessarily important– what matters is it can and does happen that the cylc daemon is not running, so cylc produces no notifications, and how can we notify… someone… to intervene when this happens?

I’ve heard of people implementing solutions using `cylc ping` commands in `cron` jobs, which sounds clunky but it’s better than nothing.

Does anyone here have an opinion on the “right” way to check if cylc is running and set off alarms if it’s not?

---

<div class="post-metadata">

**Author:** ![dpmatthews](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/dpmatthews/32/26_2.png) [@dpmatthews](https://cylc.discourse.group/u/dpmatthews)\
**Post date:** [December 5, 2025, 7:21am UTC](https://cylc.discourse.group/t/cylc-keepalive-best-practices/1271/2 "2025-12-05T07:21:25Z")

</div>

There is currently a bug which means that Cylc [does not run any abort handlers](https://github.com/cylc/cylc-flow/issues/5997). Fixing this should allow Cylc to send an email if it aborts which will help in some cases.

There is also an enhancement planned to allow Cylc to [detect any workflows which have died](https://github.com/cylc/cylc-flow/issues/4858). This should provide a simple command which can be run via cron.
