From 4141075e741e70b0d9e43fcbc9e8287a4989ef02 Mon Sep 17 00:00:00 2001 From: Yaron Schneider Date: Thu, 10 Oct 2024 14:55:25 -0700 Subject: [PATCH] Update howto-schedule-and-handle-triggered-jobs.md Signed-off-by: Yaron Schneider --- .../jobs/howto-schedule-and-handle-triggered-jobs.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/jobs/howto-schedule-and-handle-triggered-jobs.md b/daprdocs/content/en/developing-applications/building-blocks/jobs/howto-schedule-and-handle-triggered-jobs.md index ed4a30e0c13..0a5dba3b10c 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/jobs/howto-schedule-and-handle-triggered-jobs.md +++ b/daprdocs/content/en/developing-applications/building-blocks/jobs/howto-schedule-and-handle-triggered-jobs.md @@ -94,12 +94,6 @@ In this example, at trigger time, which is `@every 1s` according to the `Schedul At the trigger time, the `prodDBBackupHandler` function is called, executing the desired business logic for this job at trigger time. For example: -### Triggered Job Handling Assumptions - -Note: The following information applies to **all programming languages**, not just the Go examples provided in this -documentation. As of Dapr release v1.14, the Jobs API is only supported in the Go SDK, but support for additional SDKs -and languages will be added in future releases. - #### HTTP When you create a job using Dapr's Jobs API, Dapr will automatically assume there is an endpoint available at @@ -107,6 +101,8 @@ When you create a job using Dapr's Jobs API, Dapr will automatically assume ther events at `/job/test`. Ensure your application has a handler set up for this endpoint to process the job when it is triggered. For example: +*Note: The following example is in Go but applies to any programming language.* + ```go func main() { @@ -130,6 +126,8 @@ func handleJob(w http.ResponseWriter, r *http.Request) { When a job reaches its scheduled trigger time, the triggered job is sent back to the application via the following callback function: +*Note: The following example is in Go but applies to any programming language with gRPC support.* + ```go import rtv1 "github.com/dapr/dapr/pkg/proto/runtime/v1" ... @@ -215,4 +213,4 @@ dapr run --app-id=distributed-scheduler \ ## Next steps - [Learn more about the Scheduler control plane service]({{< ref "concepts/dapr-services/scheduler.md" >}}) -- [Jobs API reference]({{< ref jobs_api.md >}}) \ No newline at end of file +- [Jobs API reference]({{< ref jobs_api.md >}})