# Pause Mender client before download and get the artifact name of the next release

**URL:** <https://hub.mender.io/t/pause-mender-client-before-download-and-get-the-artifact-name-of-the-next-release/5932>\
**Category:** General Discussions\
**Created:** [June 22, 2023, 12:37pm UTC](https://hub.mender.io/t/pause-mender-client-before-download-and-get-the-artifact-name-of-the-next-release/5932 "2023-06-22T12:37:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@Saurabh](https://hub.mender.io/u/Saurabh)\
**Post date:** [June 22, 2023, 12:37pm UTC](https://hub.mender.io/t/pause-mender-client-before-download-and-get-the-artifact-name-of-the-next-release/5932/1 "2023-06-22T12:37:29Z")

</div>

I would like to achieve the following:

1. Access the artificact name of the next release from a state script.
2. Pause mender client.
3. Continue with the download when the user sees the new release version.

I have read about the state scripts, however I am also not sure if the script can stay in the upgrade script for an indefinite period waiting for user action.
