# Insert task only for 1st january cycle points

**URL:** <https://cylc.discourse.group/t/insert-task-only-for-1st-january-cycle-points/411>\
**Category:** Cylc Support\
**Created:** [December 14, 2021, 11:37pm UTC](https://cylc.discourse.group/t/insert-task-only-for-1st-january-cycle-points/411 "2021-12-14T23:37:05Z")\
**Posts on this page:** 3\
**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:** [December 14, 2021, 11:37pm UTC](https://cylc.discourse.group/t/insert-task-only-for-1st-january-cycle-points/411/1 "2021-12-14T23:37:05Z")

</div>

hi there,

i have the following lines in my `suite.rc`…

```auto
{% if HOUSEKEEP %}
    py_for_afterburner => housekeeping
{% endif %}

```

currently i have a resubmission period of 3 months.

i want `housekeeping` to always run but how would i make the suite run the `py_for_afterburner` task as well but only for cycle points that start on january 1st?

many thanks!

cc @MaxThomas90

---

<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:** [December 15, 2021, 10:21am UTC](https://cylc.discourse.group/t/insert-task-only-for-1st-january-cycle-points/411/2 "2021-12-15T10:21:21Z")

</div>

I think something like this:

```ini
[scheduling]
    initial cycle point = 2000-01-01T00Z
    [[dependencies]]
        [[[P3M]]]
            # regular graph
            graph = """
                {% if HOUSEKEEP %}
                    housekeeping
                {% endif %}
            """
        [[[0101T00]]]
            # special graph for the 1st of Jan
            graph = """
                py_for_afterburner
                {% if HOUSEKEEP %}
                     py_for_afterburner => housekeeping
                {% endif %}
            """

```

---

<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:** [December 15, 2021, 8:54pm UTC](https://cylc.discourse.group/t/insert-task-only-for-1st-january-cycle-points/411/3 "2021-12-15T20:54:47Z")

</div>

awesome! thanks a lot @oliver.sanders, we’ll give that a go…
