dapr / cli

Command-line tools for Dapr.
Apache License 2.0
318 stars 202 forks source link

Distributed Scheduler CLI Changes #1405

Closed cicoyle closed 3 months ago

cicoyle commented 4 months ago

Dapr init, run, and uninstall with Scheduler.

Issue reference

https://github.com/dapr/dapr/issues/7605

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

cicoyle commented 3 months ago

Big thank you to @artursouza for the majority of the efforts for this change 🎉

cicoyle commented 3 months ago

Notes for the future to remember:

Planning to add to the cli these commands to a following release:

dapr job schedule --name=myjob --app-id=myapp --schedule "@hourly" --data '{"key":"value"}' --repeats 1
dapr job get --name=myjob --app-id=myapp
dapr job delete --name=myjob --app-id=myapp
mikeee commented 3 months ago

I'm not seeing the scheduler initialized - I've created a custom installerbundle with the scheduler added to the dapr docker image. There are no errors/warnings logged


./dist/
./dist/dashboard_linux_amd64.tar.gz
./dist/injector_linux_amd64.tar.gz
./dist/scheduler_linux_amd64.tar.gz
./dist/daprd_linux_amd64.tar.gz
./dist/sentry_linux_amd64.tar.gz
./dist/placement_linux_amd64.tar.gz
./dist/operator_linux_amd64.tar.gz
./docker/
./docker/daprio-dapr-0.0.0-dev.tar.gz
./details.json
./dapr
ℹ️  Removing Dapr from your machine...
⚠  WARNING: /home/runner/.dapr/bin does not exist
⚠  WARNING: dapr_placement container does not exist
⚠  WARNING: dapr_scheduler container does not exist
⚠  WARNING: dapr_redis container does not exist
⚠  WARNING: dapr_zipkin container does not exist
⚠  WARNING: /home/runner/.dapr does not exist
✅  Dapr has been removed successfully
⌛  Making the jump to hyperspace...
⚠  Local bundle installation using --from-dir flag is currently a preview feature and is subject to change. It is only available from CLI version 1.7 onwards.
ℹ️  Installing runtime version 0.0.0-dev

Dapr runtime installed to /home/runner/.dapr/bin, you may run the following to add it to your path if you want to run daprd directly:
    export PATH=$PATH:/home/runner/.dapr/bin
Loaded image: daprio/dapr:0.0.0-dev
✅  Extracting binaries and setting up components...
✅  Extracted binaries and completed components set up.
ℹ️  daprd binary has been installed to /home/runner/.dapr/bin.
ℹ️  dapr_placement container is running.
ℹ️  Use `docker ps` to check running containers.
✅  Success! Dapr is up and running. To get started, go here: https://aka.ms/dapr-getting-started```
marcduiker commented 1 month ago

@holopin-bot @cicoyle Thanks Cassie!

holopin-bot[bot] commented 1 month ago

Congratulations @cicoyle, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/clzv8dtm642510cli68vs37e7

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!