{"id":21584017,"url":"https://github.com/cadence-workflow/cadence-samples","last_synced_at":"2025-05-16T11:04:34.357Z","repository":{"id":27273054,"uuid":"94829846","full_name":"cadence-workflow/cadence-samples","owner":"cadence-workflow","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-12T21:10:06.000Z","size":5572,"stargazers_count":198,"open_issues_count":22,"forks_count":98,"subscribers_count":629,"default_branch":"master","last_synced_at":"2025-05-13T07:03:09.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cadence-workflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-19T23:37:47.000Z","updated_at":"2025-05-12T21:10:10.000Z","dependencies_parsed_at":"2024-06-18T21:23:09.780Z","dependency_job_id":"21ad450c-163d-4241-abb6-4000b6a1385b","html_url":"https://github.com/cadence-workflow/cadence-samples","commit_stats":null,"previous_names":["cadence-workflow/cadence-samples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadence-workflow%2Fcadence-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadence-workflow%2Fcadence-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadence-workflow%2Fcadence-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cadence-workflow%2Fcadence-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cadence-workflow","download_url":"https://codeload.github.com/cadence-workflow/cadence-samples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T15:01:01.047Z","updated_at":"2025-05-16T11:04:34.352Z","avatar_url":"https://github.com/cadence-workflow.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Cadence Samples ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/uber-common/cadence-samples/build.yml)\n\nThese are some samples to demostrate various capabilities of Cadence client and server.  You can learn more about cadence at:\n* Cadence Server: https://github.com/cadence-workflow/cadence\n* Cadence Client: https://github.com/cadence-workflow/cadence-go-client\n\n## Prerequisite for running samples\n\nRun Cadence server:\n```\ncurl -LO https://raw.githubusercontent.com/cadence-workflow/cadence/refs/heads/master/docker/docker-compose.yml\ndocker-compose up\n```\n\n\n## Steps to run samples\n### Build Samples\n```\nmake\n```\n\n### Run HelloWorld Sample\n\n* Start workers for helloworld workflow and activities\n```\n./bin/helloworld -m worker\n```\n\n* Start workflow execution for helloworld workflow\n```\n./bin/helloworld -m trigger\n```\n\n### Commands to run other samples\n\n#### cron\n```\n./bin/cron -m worker\n```\nStart workflow with cron expression scheduled to run every minute.\n```\n./bin/cron -m trigger -cron \"* * * * *\"\n```\n\n#### dsl\n```\n./bin/dsl -m worker\n```\n```\n./bin/dsl -m trigger -dslConfig cmd/samples/dsl/workflow1.yaml\n./bin/dsl -m trigger -dslConfig cmd/samples/dsl/workflow2.yaml\n```\n\n#### expense\nSee more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/expense/README.md\n\n#### fileprocessing\n```\n./bin/fileprocessing -m worker\n```\n```\n./bin/fileprocessing -m trigger\n```\n\n#### recipes/branch\n```\n./bin/branch -m worker\n```\nRun branch workflow\n```\n./bin/branch -m trigger -c branch\n```\nRun parallel branch workflow\n```\n./bin/branch -m trigger -c parallel this will run the parallel branch workflow\n```\n\n#### recipes/choice\n```\n./bin/choice -m worker\n```\nRun the single choice workflow\n```\n./bin/choice -m trigger -c single\n```\nRun the multi choice workflow\n```\n./bin/choice -m trigger -c multi\n```\n\n#### greetings\n```\n./bin/greetings -m worker\n```\n```\n./bin/greetings -m trigger\n```\n\n#### pickfirst\n```\n./bin/pickfirst -m worker\n```\n```\n./bin/pickfirst -m trigger\n```\n\n#### mutex\n```\n./bin/mutex -m worker\n```\n```\n./bin/mutex -m trigger\n```\n\n#### retryactivity\n```\n./bin/retryactivity -m worker\n```\n```\n./bin/retryactivity -m trigger\n```\n\n#### splitmerge\n```\n./bin/splitmerge -m worker\n```\n```\n./bin/splitmerge -m trigger\n```\n\n#### timer\n```\n./bin/timer -m worker\n```\n```\n./bin/timer -m trigger\n```\n\n#### childworkflow\n```\n./bin/childworkflow -m worker\n```\n```\n./bin/childworkflow -m trigger\n```\n\n#### dynamic\n```\n./bin/dynamic -m worker\n```\n```\n./bin/dynamic -m trigger\n```\n\n#### localactivity\nSee more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recipes/localactivity/README.md\n\n#### query\nSee more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recipes/query/README.md\n\n#### recovery\nSee more details in https://github.com/uber-common/cadence-samples/blob/master/cmd/samples/recovery/README.md\n\n## License\n\nApache 2.0 License, please see [LICENSE](https://github.com/cadence-workflow/cadence-samples/blob/master/LICENSE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadence-workflow%2Fcadence-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadence-workflow%2Fcadence-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadence-workflow%2Fcadence-samples/lists"}