{"id":21848957,"url":"https://github.com/civilcode/beam-shutdown","last_synced_at":"2025-03-21T17:41:04.157Z","repository":{"id":99410901,"uuid":"131005194","full_name":"civilcode/beam-shutdown","owner":"civilcode","description":"Demonstrates the shutdown of the beam","archived":false,"fork":false,"pushed_at":"2018-04-25T12:56:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T12:41:33.656Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/civilcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-25T12:46:42.000Z","updated_at":"2019-05-12T22:40:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f4bcaeb-63c0-44ff-8905-402f46f9cebc","html_url":"https://github.com/civilcode/beam-shutdown","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/civilcode%2Fbeam-shutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fbeam-shutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fbeam-shutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/civilcode%2Fbeam-shutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/civilcode","download_url":"https://codeload.github.com/civilcode/beam-shutdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244842410,"owners_count":20519612,"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-28T00:09:42.749Z","updated_at":"2025-03-21T17:41:04.151Z","avatar_url":"https://github.com/civilcode.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Umb\n\nThis is an umbrella containing 2 applications: A and B.\n\nIt's been created to check what happens when we send `SIGTERM` to the `BEAM`.\n\nHere, we've setup application A, which depends on application B.\n\nBoth applications contains long running processes setup using GenServer.\n\nWe want to delay shutting down of the application A and give it time to clean up. To do that we\nsetup shutdown timeout, trap exit and setup `terminate` callback to be called on shutdown. Part of the\nclean up step is to send message to application B.\n\nResult: we successfully receive an answer.\n\nTo send `SIGTERM` signal:\n\n```\nps ax | grep beam\nkill -s TERM beam_pid\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivilcode%2Fbeam-shutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivilcode%2Fbeam-shutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivilcode%2Fbeam-shutdown/lists"}