# How would i edit and resubmit a job script in cylc 8?

**URL:** <https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622>\
**Category:** Cylc 8 Migration\
**Created:** [April 3, 2023, 1:13am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622 "2023-04-03T01:13:54Z")\
**Posts on this page:** 5\
**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 3, 2023, 1:13am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622/1 "2023-04-03T01:13:54Z")

</div>

hi there,

in cylc 8, how would i edit and run an existing `job` script? in cylc 7 i would’ve done…

```auto
cylc trigger [suite name] [task name].[cycle point] -e

```

i’ve tried in the gui and looked in the docs but i guess i don’t really know what i’m looking for?!

i’m doing this because there’s something in my `job` script which i think might be causing an error and want to remove it.

thanks!

jonny

---

<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 3, 2023, 1:28am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622/2 "2023-04-03T01:28:51Z")

</div>

Good question!

In the web UI, click on the task icon, then click on “See more” in the command menu that pops up, then click on “Edit Runtime”.

You will be presented with a bunch of editable job configuration items (i.e., corresponding to settings under `[runtime][TASK]` in the workflow config).

Once submitted, the edited settings remain valid for any future job submissions by the target task, unless you re-edit to cancel the changes via the web UI.

You can also view, change, or cancel these settings using the `cylc broadcast` command, which is how this works under the hood in Cylc 8.

---

<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 3, 2023, 7:28am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622/3 "2023-04-03T07:28:07Z")

</div>

thanks a lot for this! i’ll have a proper play with this once i’ve got my suite running! 😄

---

<div class="post-metadata">

**Author:** ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)\
**Post date:** [April 3, 2023, 9:17am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622/4 "2023-04-03T09:17:14Z")

</div>

We’ve got a video demo of this in the “tips” section of the forum:

> [@Cylc 8 GUI new feature: Edit Runtime](https://cylc.discourse.group/t/cylc-8-gui-new-feature-edit-runtime/588):
>
> A new feature in v1.4 of the Cylc 8 GUI is the “Edit Runtime” command. This allows you to edit the [runtime] section of a task or family at a particular cycle point. [demo8] This is a convenient alternative to the Broadcast command. It is similar to the old “trigger-edit” functionality of Cylc 7, except: Any edits you make will persist for every time you trigger that task at that cycle point Triggering is done separately Families can now be edited as well as tasks v1.4 of the UI is bundled…

---

<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 4, 2023, 12:11am UTC](https://cylc.discourse.group/t/how-would-i-edit-and-resubmit-a-job-script-in-cylc-8/622/5 "2023-04-04T00:11:40Z")

</div>

thanks @oliver.sanders that’s great!
