Re-running a rose app

Hi there, we have implemented rose apps which checkout and build each of the tools we need in our workflow. What we can’t figure out is how re-launch a build that has failed.

The task that does the builds is:

[[ build<build> ]]
    platform = belenos_login
    inherit = FAMBUILD
    script = rose task-run --app-key ${CYLC_TASK_PARAM_build}

where build = nemosam, mroa, bias, tep defined as a task parameter

It checks out in work/$CYLC_TASK_CYCLE_POINT/build<build>

If the task fails, we fix and we update with cylc vr

However, if we trigger the task again it fails because the directory work/$CYLC_TASK_CYCLE_POINT/build already exists.

It seems to me we’re missing something somewhere. Maybe we need to cleanup the dir ourselves?

Thanx!

I guess adding -N to the command does the trick :grinning_face:

1 Like

The -N option will delete all of the the files in work/$CYLC_TASK_CYCLE_POINT/build.

The other option is to write the app such that it is able to run incrementally, i.e. write it to tolerate the directory already existing. Some incremental build tools may make use of this.

1 Like