# To understand about faults

**URL:** <https://forum.genieacs.com/t/to-understand-about-faults/5443>\
**Category:** Uncategorized\
**Created:** [May 17, 2024, 8:15am UTC](https://forum.genieacs.com/t/to-understand-about-faults/5443 "2024-05-17T08:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokila](https://avatars.discourse-cdn.com/v4/letter/g/e9bcb4/32.png) [@Gokila](https://forum.genieacs.com/u/Gokila)\
**Post date:** [May 17, 2024, 8:15am UTC](https://forum.genieacs.com/t/to-understand-about-faults/5443/1 "2024-05-17T08:15:43Z")

</div>

In our code under extension.ts file,  
This function is there.  
export function run(args: string): Promise\<{ fault: Fault; value: any }\> {

inside this function below code are there,  
setTimeout(() =\> {  
if (jobs.delete(id)) {  
resolve({  
fault: { code: “timeout”, message: “Extension timed out” },  
value: null,  
});  
}  
}, TIMEOUT);

```
if (!processes[scriptName].connected) return false;

return processes[scriptName].send([id, args.slice(1)]);

```

});  
}

What is this function will do , what is the “job” means,  
how to resolve the extension timeout fault , is there any expiry time for this faults.

what is max retries of faults.
