Cylc set --pre=xtrigger?

This perhaps is the same as Set-outputs on an xtrigger but I think it is slightly different. I was wondering if it was possible somehow to set the xtrigger pre-req for a task? I tried cylc set --pre=W basic-workflow//20250123T0000Z/bar for the below graph, but that didn’t work. I also tried 20250123T0000Z/W (bar does not depend on "20250123T0000Z/W:succeeded") and 20250123T0000Z/@W (this one said @W is an illegal task name).

[scheduling]
    initial cycle point = 20250123
    runahead limit = P0

    [[xtriggers]]
        W = wall_clock(P20Y)

    [[graph]]
        P1D = @W => bar

[runtime]
    [[bar]]
        script = echo hello

NOTE: Only tested with 8.3.6 so far

No you can’t do that yet. The workarounds would be:

  • manually trigger the task, to run despite the unsatisfied xtrigger
  • (or - for future tasks - remove the dependence on the xtrigger then reload or restart the scheduler)

HOWEVER, by a near-miraculous coincidence, just hours ago I just posted a draft code change to cover xtriggers with cylc set: set command: manually satisfy or unsatisfy xtriggers by hjoliver · Pull Request #6695 · cylc/cylc-flow · GitHub

I’m hoping we’ll get this into Cylc 8.5 because the internals of it are needed for the upcoming “group trigger” feature Group trigger by hjoliver · Pull Request #6395 · cylc/cylc-flow · GitHub