Skip to content

docs: refresh all documentation for *job.Definition convergence#21

Merged
jasoet merged 3 commits into
mainfrom
docs/update-for-job-definition
May 11, 2026
Merged

docs: refresh all documentation for *job.Definition convergence#21
jasoet merged 3 commits into
mainfrom
docs/update-for-job-definition

Conversation

@jasoet

@jasoet jasoet commented May 11, 2026

Copy link
Copy Markdown
Owner

Summary

Comprehensive doc refresh after the recent pkg/temporal/job + builder convergence work. Three commits, ~25 files touched.

Top-level entrypoints (bc9e487)

  • README.md, INSTRUCTION.md, docs/getting-started.md, docs/architecture.md
  • All temporal.NewClient calls updated to 2-return signature
  • Quick-starts rewritten to use builder + *job.Definition pattern
  • New project-structure entries for datasync/chunk/ and datasync/internal/heartbeat/

Workflow guides + new docs (2c38ceb)

  • docs/datasync-workflows.md, docs/container-workflows.md, docs/function-workflows.md — builder sections rewritten
  • New docs/chunk-workflows.md (~270 lines)
  • New docs/job-definition.md (~240 lines)

Package + example READMEs (ca45231)

  • container/, function/, datasync/, examples/* READMEs updated

Verified

  • Zero stale FullJobRegistration / 3-return NewClient / old Build*() references
  • Cross-links consistent
  • docs: commit type = no semantic-release version bump

jasoet added 3 commits May 11, 2026 11:45
- container/README.md: add builder-first quick example showing
  NewWorkflowBuilder().Name(...).Single().Build() → *job.Definition;
  retain low-level ExecuteWorkflow path; link to docs/job-definition.md
- function/README.md: replace quick example with NewFunctionBuilder()
  chain (.Name/.Activity/.Single/.Add/.Build); link to docs/job-definition.md
- datasync/README.md: show Build() returning *job.Definition; add
  datasync/chunk/ section with NewDateChunkedSync example and schedule
  methods; link to docs/job-definition.md
- examples/container/README.md: update section 12 (builder-advanced.go)
  to remove BuildSingle() reference and describe Build() → *job.Definition
- examples/function/README.md: replace deprecated BuildPipeline/BuildParallel/
  BuildSingle table with current .Pipeline()/.Parallel()/.Single()+.Build() API
- examples/datasync/README.md: add chunk_basic.go entry (section 5) and
  running command
All builders now return (*job.Definition, error) from Build(). Update
README, INSTRUCTION, getting-started, and architecture docs to reflect
the new temporal.NewClient 2-return signature, the unified job.Definition
API, datasync/chunk and datasync/internal/heartbeat packages, and the
removal of FullJobRegistration and the old multi-method builder patterns.
- datasync-workflows.md: Builder section updated to show Build() returning
  *job.Definition; worker setup uses def.Register/def.Execute/def.ApplySchedule;
  removed FullJobRegistration/BuildJobRegistration; added chunk cross-link.
- container-workflows.md: Builder section updated to show NewWorkflowBuilder()
  (no name arg), Name/mode setters, Build() -> *job.Definition, def.Register
  pattern; worker setup section split into builder-based and manual paths;
  noted RegisterAll idempotency.
- function-workflows.md: Builder section updated to show NewFunctionBuilder(),
  required Name/Activity setters, mode setters, Build() -> *job.Definition;
  worker setup section split into builder-based and manual paths.
- docs/chunk-workflows.md: New guide for datasync/chunk package covering
  ChunkedSync and DateChunkedSync builders, Partition/PartitionFetcher/
  ProgressTracker interfaces, resumable backfills, ContinueAsNew, rate-limit
  retry, and scheduling.
- docs/job-definition.md: New guide for *job.Definition from
  pkg/v2/temporal/job covering registration, execution, per-run lifecycle,
  per-job aggregates, ScheduleSpec, Registry, and direct construction.
@jasoet jasoet merged commit 1ba1c78 into main May 11, 2026
1 check passed
@jasoet jasoet deleted the docs/update-for-job-definition branch May 11, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant