{"id":15562152,"url":"https://github.com/mrkamel/process_manager","last_synced_at":"2025-03-29T04:44:05.973Z","repository":{"id":144996315,"uuid":"139158726","full_name":"mrkamel/process_manager","owner":"mrkamel","description":"A process manager framework for forking, threading and graceful termination","archived":false,"fork":false,"pushed_at":"2018-12-04T12:23:18.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T14:36:29.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/mrkamel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-29T14:25:41.000Z","updated_at":"2018-12-04T12:23:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f78371ae-7d0f-4c4c-ac74-e31075c0b9aa","html_url":"https://github.com/mrkamel/process_manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkamel%2Fprocess_manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkamel%2Fprocess_manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkamel%2Fprocess_manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkamel%2Fprocess_manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrkamel","download_url":"https://codeload.github.com/mrkamel/process_manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140542,"owners_count":20729797,"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-10-02T16:12:00.187Z","updated_at":"2025-03-29T04:44:05.948Z","avatar_url":"https://github.com/mrkamel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProcessManager\n\n[![Build Status](https://secure.travis-ci.org/mrkamel/process_manager.png?branch=master)](http://travis-ci.org/mrkamel/process_manager)\n\nA process manager framework for forking, threading and graceful termination\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'process_manager'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install process_manager\n\n## Usage\n\n`ProcessManager` manages your background processes, thread and their graceful termination.\n\n```ruby\nprocess_manager = ProcessManager.new(logger: Logger.new(STDOUT))\n\nprocess_manager.thread do\n  # ...\nend\n\nprocess_manager.fork \"process1\" do # process1 will be shown in top, ps, etc\n  # ...\nend\n\nprocess_manager.wait # blocking\n```\n\nTo gracefully stop the forked processes and `ProcessManager` itself, send a\n`QUIT` or `INT` signal to the process running `ProcessManager`.\n`ProcessManager` will then gracefully stop the forked processes by sending a\n`QUIT` signal to them to subsequently wait until they are shut down and\nterminate itself afterwards. The PID files of the forked processes are stored\nin `/tmp/process_manager`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mrkamel/process_manager.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkamel%2Fprocess_manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrkamel%2Fprocess_manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkamel%2Fprocess_manager/lists"}