temporalio / temporalio/samples-typescript

[Feature Request] Start server in scratchpad

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

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
465
Forks
148
Avg merge
1d 10h
Merged PRs (30d)
11

Description

Is your feature request related to a problem? Please describe.

If I try to run ts-node scratchpad/scratchpad.ts, after a while I get this error:

ts-node scratchpad.ts
TransportError: tonic::transport::Error(Transport, hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })))
    at Function.connect (/Users/me/node_modules/@temporalio/worker/src/connection.ts:51:15)
    at async Function.create (/Users/me/node_modules/@temporalio/worker/src/worker.ts:457:47)
    at async main (/Users/me/gh/samples-typescript/scratchpad/scratchpad.ts:33:18)
Describe the solution you'd like

scratchpad.ts runs temporal server start-dev if it's not already running

cc @dandavison

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.

Research direction

Start by reading scratchpad/scratchpad.ts and the command shown in the issue. Check how temporal server start-dev behaves when a server is already running, then make the scratchpad start the server when needed. Done means running ts-node scratchpad/scratchpad.ts no longer requires a separately started server.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.