---
title: Usage Of gs.sleep() On Workflow Activities
description: "Impact Area Performance Severity High Affected Element Workflow Activities Use a Workflow Timer activity instead of gs.sleep. This will ensure the workflow will release the thread, freeing up system resources.  Rule ID **SN-0409** ## Impact  The gs.sleep() function should not…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/usage-of-gs-sleep-on-workflow-activities/"
updated: "2025-03-21"
category: Rules
---

# Usage Of gs.sleep() On Workflow Activities

Impact Area

Performance

           Severity

High

           Affected Element

Workflow Activities

Use a Workflow Timer activity instead of gs.sleep. This will ensure the workflow will release the thread, freeing up system resources. 

Rule ID

**SN-0409**

## Impact

 The gs.sleep() function should not be used on any workflow activities because it does not release session, the workflow will hold on to the thread and the the instance will run out of worker threads for other jobs.

## Remediation

Use a Workflow Timer activity instead of gs.sleep. This will ensure the workflow will release the thread, freeing up system resources.

### Time to fix

10 min
