Add timeout parameter to addprocs function

Open
#139 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
julia

Research direction

Start by locating the addprocs entry point and reviewing how JULIA_WORKER_TIMEOUT is currently read and applied. Define the timeout keyword with the proposed default and verify that addprocs(4; timeout=120.0) uses it instead of requiring the environment variable.

Written by the indexing model from the issue text.

Description

enhancement

Currently, the worker timeout for addprocs can only be configured via the JULIA_WORKER_TIMEOUT environment variable. It would be more convenient to have a timeout keyword argument directly in the addprocs function.

Proposed API:

addprocs(4; timeout=120.0)  # 120 second timeout

This would be more ergonomic than having to set environment variables before calling addprocs.

Dominant language
Julia
Stars
55
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaLang/Distributed.jl

All issues in JuliaLang/Distributed.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.