{"id":15641958,"url":"https://github.com/ragurney/aws_codepipeline_job_worker","last_synced_at":"2026-04-27T12:02:06.763Z","repository":{"id":133089843,"uuid":"143222386","full_name":"ragurney/aws_codepipeline_job_worker","owner":"ragurney","description":"Extensible job worker for AWS CodePipeline custom actions","archived":false,"fork":false,"pushed_at":"2019-07-17T15:59:53.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T22:14:09.821Z","etag":null,"topics":["aws","aws-codepipeline","codepipeline","go","job-scheduler","jobs"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ragurney.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":"2018-08-02T00:37:28.000Z","updated_at":"2020-12-07T21:20:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb36e0b6-2c62-4a4d-9b41-330683bb9328","html_url":"https://github.com/ragurney/aws_codepipeline_job_worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ragurney/aws_codepipeline_job_worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragurney%2Faws_codepipeline_job_worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragurney%2Faws_codepipeline_job_worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragurney%2Faws_codepipeline_job_worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragurney%2Faws_codepipeline_job_worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragurney","download_url":"https://codeload.github.com/ragurney/aws_codepipeline_job_worker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragurney%2Faws_codepipeline_job_worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","aws-codepipeline","codepipeline","go","job-scheduler","jobs"],"created_at":"2024-10-03T11:53:12.136Z","updated_at":"2026-04-27T12:02:06.742Z","avatar_url":"https://github.com/ragurney.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# AWS CodePipeline Job Worker \u003cimg src=\"https://cdn4.iconfinder.com/data/icons/under-construction-1/512/under-512.png\" height=\"50px\"\u003e\n\nA simple job worker for custom actions in AWS CodePipeline. Built to be easily extended to accomodate other custom\njobs not already implemented.\n\n## How to Use\n* Create your AWS CodePipeline and set up a custom action (included in this repo is a custom job configuration for Travis builds)\n* Host `aws_codepipeline_job_worker` anywhere (laptop, EC2 instance, etc.).\n* [Set up your credentials](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials).\n* Run application 🎉\n\n## How It Works\n### Structure\nThe structure of `actions/` should be as follows:\n```\ncustom_action_1/\n├── dispatcher.go\n├── job.go\n│\n...\ncustom_action_N/\n├── dispatcher.go\n├── job.go\n```\nEach custom action is expected to have a `dispatcher` and a `job`.\n`dispatcher` is responsible for implementing the methods\ndefined in the interface, which are responsible for starting the poller for that action type, as well as kicking off a new job. The main meat of the logic for the custom action should live in `job`, which is responsible for initializing itself, and reporting back the correct\nstatus to AWS CodePipelin (see `pkg/actions/travis/dispatcher` and `pkg/actions/travis/job` for a working example.\n\n\n### Application Flow\n\n![worker_flow](https://user-images.githubusercontent.com/15261525/44610879-341b7780-a7b3-11e8-939b-1866f023fd44.png)\n\n1. `main.go` fires off all dispatchers (e.x. `travis.NewDispatcher().Initialize()`).\n1. The dispatcher starts a `poller` in a new thread for that particular custom action.\n1. The poller polls CodePipeline intermittently, calling `PollForJobs`.\n1. Once a job is available, CodePipeline will return the job.\n1. `poller` will call it's `dispatcher`'s `Dispatch` method.\n1. `dispatcher` will kick off the job in a new thread.\n1. `job` will do all of the interaction with the third party service, such as submitting a build, polling for progress, updating CodePipeline with intermediate statuses/info such as an `ExecutionID`\n1. Once the job is complete `job` will update CodePipeline a final time with the result status.\n\n\n### TODO\n\n* Tons of refactoring, mainly in `job.rb`\n  * Address TODOs\n  * Refactor nested ifs and general error handling\n* Add configuration support\n* Add tests\n* Improve documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragurney%2Faws_codepipeline_job_worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragurney%2Faws_codepipeline_job_worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragurney%2Faws_codepipeline_job_worker/lists"}