Hi
I am trying to replicate above workflow with cylc. Here /main is the family or module container, which contains other tasks. In BuildDates, we make ascii file contains one date per record…generated from start/end date given by user. Then we pick up top record of this file, run /gemmach for that date, delete top record. pick up next date and repeat for all dates.
I just started learning about Family task in cylc. Appreciate any help, in simulating above workflow in cylc.
cylc graph . …does not show MAIN. I was expecting, it will show MAIN as rectangle with tasks inside.
[scheduler]
allow implicit tasks = True
[task parameters]
num = 1..3
[scheduling]
initial cycle point = 20190211T00 # STARTDATE=2017071700 (UTC)
final cycle point = 20190211T00 # ENDDATE=2017072000
[[graph]]
# R/P1D = """
R1 = """
# MAIN:succeed-all => prep_settings
BuildDates => Launch => Next => prep_settings
"""
[runtime]
# root is special family task, which is run by all tasks; define variables here at very top level
[[root]]
[[[environment ]]]
root_variable = 000
# Family tasks are named in capital letters. [root] family task is exception, and it is run by all tasks
[[MAIN]]
script = """ echo "I am in MAIN family var=$var" """
[[[environment ]]]
var = 999
#
[[BuildDates]]
inherit = MAIN
script = """ echo " I am in BuildDates task var=$var var2=$var2 " """
[[[environment ]]]
var = 888
var2 = 777
#
[[Launch]]
inherit = MAIN
script = """ echo " I am in Launch task var=$var var2=$var2 " """
[[[environment ]]]
var = 666
var2 = 444
#
[[Next]]
inherit = MAIN
script = """ echo " I am in Launch task var=$var var2=$var2 " """
[[[environment ]]]
var = 333
var2 = 222
[[prep_settings]]
script = """ echo " I am in prep_settings task var=$var var2=$var2 " """
[[[environment ]]]
var = 199
var2 = 188


