haskell-distributed / haskell-distributed/distributed-process

[DPSLN-10] How to stop a master?

Open
#399 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

distributed-process-simplelocalnet
Dominant language
Haskell
Stars
751
Forks
99
Avg merge
45m
Merged PRs (30d)
2

Description

[Imported from JIRA. Reported by Niklas Hambuechen @mail@nh2.me) as DPSLN-10 on 2013-02-13 03:29:04]
I followed the work stealing example frm the Well-Typed blog.

I did not use "terminateAllSlaves", so that I can repeatedly run my master "main" function and get slaves to do multiple rounds of work.

However, I cannot do the same from a single GHCi session.

It looks like "startMaster" can only be called once per GHCi, and successive calls block.

Is that correct? Why is that? How can I "stop" a master, so that I can use "startMaster" from GHCi multiple times?

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the work stealing example from the Well-Typed blog and the behavior of startMaster, terminateAllSlaves, and GHCi. Reproduce repeated startMaster calls in one GHCi session, then determine whether a master can be stopped and restarted; done means documenting the cause and the supported way to run multiple rounds.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.