temporalio / samples-go

Temporal Go SDK samples

Home Page:https://docs.temporal.io/docs/go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Trying to run a cron schedule to fetch some data from database

ShandilyaHarsh opened this issue · comments

What are you really trying to do?

I am just trying to run the cron workflow in GoLang by following the steps mentioned in the Readme.md.

Describe the bug

In worker, main.go when I am trying to register activity as cron.DoSomething , the error is that DoSomething is not declared by package cron.
error

Environment/Versions

  • OS and processor: Windows
  • Temporal Version: SDK version
  • Are you using Docker or Kubernetes or building Temporal from source?
  • Using temporal on docker compose

The example compiles, and cron.DoSomething points to the DoSomething function in https://github.com/temporalio/samples-go/blob/main/cron/workflow.go. Can you explain your situation better? Is this just something with your vscode/IDE environment? Can you not run the sample? Can you show the command and its failing output?