# Pmap timeout

**URL:** <https://discourse.julialang.org/t/pmap-timeout/87187>\
**Category:** General Usage\
**Created:** [September 13, 2022, 5:26am UTC](https://discourse.julialang.org/t/pmap-timeout/87187 "2022-09-13T05:26:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [September 13, 2022, 5:26am UTC](https://discourse.julialang.org/t/pmap-timeout/87187/1 "2022-09-13T05:26:18Z")

</div>

I am using `pmap` for multiprocessing on a single machine. Sometimes a worker hangs and never returns. Is it possible to set a timeout? Alternatively, how can I work around this problem?

I see there is `JULIA_WORKER_TIMEOUT` which has a relevant-sounding name but seems to be for something else.
