# Stuck on task status 3

**URL:** <https://forum.scrt.network/t/stuck-on-task-status-3/1145>\
**Category:** Secret Contracts and Secret Apps\
**Created:** [November 13, 2019, 12:12pm UTC](https://forum.scrt.network/t/stuck-on-task-status-3/1145 "2019-11-13T12:12:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/theo/32/329_2.png) [@theo](https://forum.scrt.network/u/theo)\
**Post date:** [November 13, 2019, 12:12pm UTC](https://forum.scrt.network/t/stuck-on-task-status-3/1145/1 "2019-11-13T12:12:36Z")

</div>

Hi! Whenever I try to use `read_state!()` in any contract and then run `discovery test`, the deployment will succeed, task status will go to 1, then get stuck on task status 3 forever.

To reproduce: from Ubuntu 18.04 with the discovery-cli, follow the [millionaire’s problem guide](https://blog.enigma.co/getting-started-with-enigma-an-intro-to-secret-contracts-cdba4fe501c2), run `discovery compile` (succeeds) and the `discovery test`, leading to the following output (never ends):

```auto
Deploying Secret Contract "millionaires_problem.wasm"...
Smart Contract "Sample.Sol" has been deployed at ETH address: 0x2c5f3c004878923f55A2a255F89Fe29393177509
Waiting. Current Task Status is 3

```

1. What does each different task status mean?
2. How do I get unstuck from status 3?

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [November 13, 2019, 5:57pm UTC](https://forum.scrt.network/t/stuck-on-task-status-3/1145/2 "2019-11-13T17:57:31Z")

</div>

Hi there Theo

1. [TaskStatus status is defined here as](https://github.com/enigmampc/enigma-contract/blob/master/contracts/impl/EnigmaCommon.sol#L24);  
RecordUndefined: 0;  
RecordCreated: 1;  
ReceiptVerified: 2;  
ReceiptFailed: 3;  
ReceiptFailedETH: 4;  
ReceiptFailedReturn: 5

2. What version of node are you using?  
Can you push your project to github so I can see if I get that error too?  
Here’s a fully [working implementation](https://github.com/lauraweindorf/enigma-millionaires-problem), can you please clone that and see if you still get that problem?

There may also be some error logs in the console for the task.

---

<div class="post-metadata">

**Author:** ![taariq](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.scrt.network/taariq/32/291_2.png) [@taariq](https://forum.scrt.network/u/taariq)\
**Post date:** [November 19, 2019, 4:20am UTC](https://forum.scrt.network/t/stuck-on-task-status-3/1145/3 "2019-11-19T04:20:47Z")

</div>

> [@theo](#):
>
> How do I get unstuck from status 3?

Hey @theo, just checking, did you get unstuck?
