restatedev / restatedev/examples

Food preparation demo is stuck?

Open
#274 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
172
Forks
34
Avg merge
57m
Merged PRs (30d)
4

Description

so I'm running the demo, and I can't see food being delivered

Image

Does it have something to do with these log lines I see?

runtimesetup-1  | {"id":"dp_15rpLbgdt1GoXdAgp111nDb","services":[{"name":"driver-mobile-app","handlers":[{"name":"move","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"poll_for_work","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"startDriver","ty":"Exclusive","input_description":"none","output_description":"none"}],"ty":"VirtualObject","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day"},{"name":"order-workflow","handlers":[{"name":"run","ty":"Workflow","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"signal_driver_at_restaurant","ty":"Shared","input_description":"none","output_description":"none"},{"name":"finishedPreparation","ty":"Shared","input_description":"none","output_description":"none"},{"name":"get_status","ty":"Shared","input_description":"none","output_description":"none"},{"name":"selected_driver","ty":"Shared","input_description":"none","output_description":"none"},{"name":"signal_delivery_finished","ty":"Shared","input_description":"none","output_description":"none"}],"ty":"Workflow","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day","workflow_completion_retention":"1day"},{"name":"order-status","handlers":[{"name":"get","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"set_eta","ty":"Exclusive","input_description":"JSON integer","output_description":"none","input_json_schema":{"type":"integer"}},{"name":"event_handler","ty":"Exclusive","input_description":"JSON integer","output_description":"none","input_json_schema":{"type":"integer"}}],"ty":"VirtualObject","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day"},{"name":"delivery-manager","handlers":[{"name":"start","ty":"Exclusive","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"handleDriverLocationUpdate","ty":"Exclusive","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"notify_delivery_pickup","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"notify_delivery_delivered","ty":"Exclusive","input_description":"none","output_description":"none"}],"ty":"VirtualObject","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day"},{"name":"driver-delivery-matcher","handlers":[{"name":"request_driver_for_delivery","ty":"Exclusive","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"set_driver_available","ty":"Exclusive","input_description":"JSON string","output_description":"none","input_json_schema":{"type":"string"}}],"ty":"VirtualObject","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day"},{"name":"driver-digital-twin","handlers":[{"name":"set_driver_available","ty":"Exclusive","input_description":"JSON string","output_description":"none","input_json_schema":{"type":"string"}},{"name":"assign_delivery_job","ty":"Exclusive","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"notify_delivery_delivered","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"notify_delivery_pickup","ty":"Exclusive","input_description":"none","output_description":"none"},{"name":"handleDriverLocationUpdateEvent","ty":"Exclusive","input_description":"application/json","output_description":"none","input_json_schema":true},{"name":"get_assigned_delivery","ty":"Exclusive","input_description":"none","output_description":"none"}],"ty":"VirtualObject","deployment_id":"dp_15rpLbgdt1GoXdAgp111nDb","revision":4,"public":true,"idempotency_retention":"1day"}]}{"id":"sub_16hp77AYdTCfbQYh22Ghacp","source":"kafka://my-cluster/driver-updates","sink":"service://driver-digital-twin/handleDriverLocationUpdateEvent","options":{"client.id":"restate","group.id":"sub_16hp77AYdTCfbQYh22Ghacp"}}{"message":"input validation error: Expected body and content-type to be empty, but wasn't with content-type 'Some(\"application/json\")'"}{"message":"input validation error: Expected body and content-type to be empty, but wasn't with content-type 'Some(\"application/json\")'"}
runtimesetup-1 exited with code 1
Using Restate's introspection!

Anyways, the introspection is really cool, and here is what I see! Am I supposed to be doing something to simulate the food delivery driver?

Image

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 reproducing the food preparation demo and inspect the runtime setup output, especially the input validation errors and the driver-digital-twin location update path shown in the logs. Check whether the demo documents how to simulate a delivery driver; done means the runtime setup stays running and food delivery progresses visibly in the demo.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.