{"id":31725181,"url":"https://github.com/drexed/cmdx-parallel","last_synced_at":"2026-01-20T17:52:47.305Z","repository":{"id":311578096,"uuid":"1043101720","full_name":"drexed/cmdx-parallel","owner":"drexed","description":"Parallelization execution of workflow tasks","archived":false,"fork":false,"pushed_at":"2025-09-30T21:35:08.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-07T14:38:54.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/drexed.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2025-08-23T06:24:42.000Z","updated_at":"2025-09-30T21:35:12.000Z","dependencies_parsed_at":"2025-08-25T11:00:43.486Z","dependency_job_id":"a23f593e-d0f7-4577-9e26-11d35b700746","html_url":"https://github.com/drexed/cmdx-parallel","commit_stats":null,"previous_names":["drexed/cmdx-parallel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/drexed/cmdx-parallel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fcmdx-parallel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fcmdx-parallel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fcmdx-parallel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fcmdx-parallel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drexed","download_url":"https://codeload.github.com/drexed/cmdx-parallel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drexed%2Fcmdx-parallel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000739,"owners_count":26082933,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T05:21:10.689Z","updated_at":"2025-10-09T05:21:13.066Z","avatar_url":"https://github.com/drexed.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./src/cmdx-light-logo.png#gh-light-mode-only\" width=\"200\" alt=\"CMDx Logo\"\u003e\n  \u003cimg src=\"./src/cmdx-dark-logo.png#gh-dark-mode-only\" width=\"200\" alt=\"CMDx Logo\"\u003e\n\n  ---\n\n  Parallelization execution of workflow CMDx tasks.\n\n  [Changelog](./CHANGELOG.md) · [Report Bug](https://github.com/drexed/cmdx-parallel/issues) · [Request Feature](https://github.com/drexed/cmdx-parallel/issues)\n\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/gem/v/cmdx-parallel\"\u003e\n  \u003cimg alt=\"Build\" src=\"https://github.com/drexed/cmdx-parallel/actions/workflows/ci.yml/badge.svg\"\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/drexed/cmdx-parallel\"\u003e\n\u003c/div\u003e\n\n# CMDx::Parallel\n\nParallelization execution of workflow tasks for [CMDx](https://github.com/drexed/cmdx).\n\n\u003e [!NOTE]\n\u003e The contents of this gem have been integrated in the [CMDx](https://github.com/drexed/cmdx) itself and is meant for backwards compatibility between versions `1.6.1` and `1.6.2`. This gem will only receive bug and security patches.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cmdx-parallel'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install cmdx-parallel\n\n## Usage\n\nCMDx::Parallel task execution leverages the [Parallel](https://github.com/grosser/parallel) gem, which automatically detects the number of available processors to maximize concurrent task execution.\n\n\u003e [!IMPORTANT]\n\u003e One important caveat to note is that context cannot be altered within parallel executions. It is best to preload the context with any required data before parallelization begins.\n\n```ruby\nclass SendWelcomeNotifications \u003c CMDx::Task\n  include CMDx::Workflow\n\n  # Default options (dynamically calculated to available processors)\n  tasks SendWelcomeEmail, SendWelcomeSms, SendWelcomePush, strategy: :parallel\nend\n```\n\n### Options\n\nReference the [Parallel](https://github.com/grosser/parallel) gem for all processing options.\n\n```ruby\nclass SendWelcomeNotifications \u003c CMDx::Task\n  include CMDx::Workflow\n\n  # Fix number of threads\n  tasks SendWelcomeEmail, SendWelcomeSms, SendWelcomePush, strategy: :parallel, in_threads: 2\n\n  # Fix number of forked processes\n  tasks SendWelcomeEmail, SendWelcomeSms, SendWelcomePush, strategy: :parallel, in_processes: 2\n\n  # NOTE: Reactors are not supported\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/drexed/cmdx-parallel. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/drexed/cmdx-parallel/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Cmdx::Parallel project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/cmdx-parallel/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Fcmdx-parallel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrexed%2Fcmdx-parallel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrexed%2Fcmdx-parallel/lists"}