DEVOPS

Stale Feature-Flag Sweep to ClickUp Cleanup Tasks

Runs weekly across your feature-flag service, finds flags that have been fully rolled out (100% on) for longer than a set threshold.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWeekly schedule fires the sweep
  • ActionFetch all flags and rollout stateHTTP webhook
  • LogicFilter to flags 100% on past threshold
  • LogicDrop flags that already have a cleanup task
  • ActionCreate ClickUp cleanup task per stale flagClickUpClickUp
  • OutputPost sweep summary to SlackSlack

What it does

On a weekly schedule, this workflow pulls every active feature flag, identifies the ones serving a single variant to 100% of traffic for more than N days, and files one ClickUp task per stale flag so engineers can delete the flag and its dead code path.

When to use it

Use it when your flag count keeps climbing and nobody circles back to retire flags after a rollout finishes. It turns silent flag debt into tracked, assignable cleanup work without anyone manually auditing the flag dashboard.

How it works

  1. 1A weekly schedule fires the sweep.
  2. 2An action fetches all flags and their rollout state from the flag platform.
  3. 3A logic step keeps only flags at 100% on a single variant with a last-changed date older than the threshold.
  4. 4A logic step deduplicates against flags that already have an open cleanup task.
  5. 5An action creates a ClickUp task per remaining flag, tagged with owner, flag key, and age.
  6. 6The output posts a summary count to the team channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect ClickUpDocs + tasks + chats in one workspace.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.