question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No option to shut down the side car

See original GitHub issue

Expected Behavior

When using Dapr with Kubernetes Job it is advised by the documentation that we should call the shutdown endpoint either using the Dapr SDK or using the command option in deployment. The reference to the document is attached herewith (https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-job/). The Dapr SDK at present does not have a shutdown method. The “dispose” method does not shut down the Sidecar

Actual Behavior

We need a method to shutdown the side car

Steps to Reproduce the Problem

Run the yaml below. The job will not get completed at all. This is because there is no Shutdown method in SDK apiVersion: batch/v1 kind: Job metadata: creationTimestamp: null name: dapr-state-job namespace: m2c-steeltoe spec: template: metadata: creationTimestamp: null annotations: dapr.io/enabled: "true" dapr.io/app-id: "dapr-state-job" dapr.io/enable-api-logging: "true" spec: containers: - image: venkateshsrini3/dapr-state-job name: dapr-state-job #command: ["sh", "-c","apt-get update && apt-get -y install curl && dotnet dapr.state.console.dll && curl -X POST localhost:3500/v1.0/shutdown"] env: - name: "State.Store" value: "mongo-cache-store" restartPolicy: Never

Release Note

Add an method called hutdown in SDK

ADD

RELEASE NOTE:

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
halspangcommented, Aug 10, 2022

@mcandeia - I took care of this one yesterday, see the PR referenced above.

0reactions
VenkateshSrinicommented, Aug 11, 2022

@halspang could you please let me know when this upgraded nuget package will be available?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sidecar is greyed out in System Preferences.
I'm using a current iMac (9th gen 6 Core i5) and a current iPad Pro. The iMac is on Catalina and the iPad...
Read more >
How to fix Sidecar problems on Mac
Click Options. Turn off “Block all incoming connections.” In older macOS versions, it is found in the Security & Privacy pane of System ......
Read more >
Sidecar not working in iPadOS and macOS? How to fix ...
Turn on your Mac, then your iPad · Open System Preferences and click on Sidecar · Select your iPad from the Connect to...
Read more >
12 Ways to Fix it When Sidecar Isn't Working on iPad
To do so, go to Settings > Home Screen & Dock and toggle the option off. Try plugging your iPad into the Mac....
Read more >
Sidecar Not Working? How To Troubleshoot
Mac: Go to Apple menu > System Preferences, then click General. Unselect “Allow Handoff between this Mac and your iCloud devices.” Wait a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found