# Can't restart workflow

**URL:** <https://cylc.discourse.group/t/cant-restart-workflow/634>\
**Category:** Cylc 8 Migration\
**Created:** [April 19, 2023, 5:28am UTC](https://cylc.discourse.group/t/cant-restart-workflow/634 "2023-04-19T05:28:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [April 19, 2023, 5:28am UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/1 "2023-04-19T05:28:00Z")

</div>

hey,

i can’t seem to restart a `cylc` 8 workflow.

when i run `cylc play WORKFLOW/run1` the `cylc log` command gives me…

```auto
2023-04-19T05:25:07Z WARNING - No active tasks matching: */*
2023-04-19T05:25:31Z INFO - [command] resume
2023-04-19T05:25:32Z INFO - RESUMING the workflow now
2023-04-19T05:25:32Z INFO - Command succeeded: resume()
2023-04-19T05:25:32Z INFO - Workflow shutting down - AUTOMATIC
2023-04-19T05:25:33Z INFO - [('workflow-event-handler', 'shutdown') cmd]
    mail -s '[workflow shutdown] u-cv956/run1' -r notifications@w-cylc02.maui.niwa.co.nz williamsjh <<<'event: shutdown
    message: AUTOMATIC
    workflow: u-cv956/run1
    host: w-cylc02.maui.niwa.co.nz
    port: 43057
    owner: williamsjh
    '
    [('workflow-event-handler', 'shutdown') ret_code] 0
2023-04-19T05:25:33Z INFO - DONE

```

any idea what’s going on? it has several years still to run!

thanks for any ideas!

j

---

<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:** [April 19, 2023, 8:36am UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/2 "2023-04-19T08:36:24Z")

</div>

The AUTOMATIC shutdown message means that there is nothing left to run, according to the workflow state recorded in the run DB, i.e. the scheduler has determined that it already finished

How did it shut down exactly, before you tried the restart? Eg. did it shut down automatically as finished then, or did you tell it to stop early?

You should be able to find the scheduler log from that run, in the `log/scheduler/` directory.

Whatever the cause, you can get it to carry on by restarting with `cylc play --pause`, then triggering the next tasks before un-pausing. But it would be good to check that some kind of erroneous early stop did not occur.

(Note, in a near-future release the scheduler will automatically stall on a timeout to allow intervention, without needing `--pause`, if you restart an already-finished workflow).

---

<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:** [April 19, 2023, 11:17pm UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/3 "2023-04-19T23:17:05Z")

</div>

> [@hilary.j.oliver](#):
>
> The AUTOMATIC shutdown message means that there is nothing left to run,

We have a new issue up on the repository, to make shutdown reasons clearer in the logs.

---

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [April 20, 2023, 1:05am UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/4 "2023-04-20T01:05:03Z")

</div>

cool thanks,

using `cylc play --pause` allowed me to trigger the tasks and it’s running again now.

one thing to note (and bearing in mind that this particular run has been monumentally messed around with by me) is that it seems to be running everything in the `none` flow! i don’t know precisely how this has happened but it might account for the scheduler not thinking there was anything else to run.

`cylc log` output…

 ![image](https://global.discourse-cdn.com/free1/uploads/cylc1/original/1X/d132801bcd6d9ddfcff5af6ea651f0421cd8de8a.png)

cheers

---

<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:** [April 20, 2023, 1:09am UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/5 "2023-04-20T01:09:34Z")

</div>

OK, you may find that the it stops again when those tasks have completed!

The “flow=none” is not a flow - i.e. those tasks won’t spawn any action downstream in the graph.

In fact this explains why your workflow automatically shut down as finished - you had only (re)triggered tasks with `--flow=none`.

If you want it to carry on at this point, you actually need to trigger a new flow at the appropriate point in the graph.

---

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [April 20, 2023, 10:21pm UTC](https://cylc.discourse.group/t/cant-restart-workflow/634/6 "2023-04-20T22:21:24Z")

</div>

thanks! yeah that all makes sense and is done now. from a previous comment…

> in a near-future release the scheduler will automatically stall on a timeout to allow intervention, without needing `--pause` , if you restart an already-finished workflow…

yeah this would be ace.

cheers,

j
