temporalio / temporalio/samples-go
[Bug] Trying to run a cron schedule to fetch some data from database
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 749
- Forks
- 248
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 8
Description
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.

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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the cron workflow steps in README.md and worker/main.go, where cron.DoSomething is registered, then inspect the related activity declarations. Reproduce the compile error using the documented Docker Compose setup; done means the sample builds and the cron workflow runs as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100