{"id":19251251,"url":"https://github.com/rexops/rex-fail","last_synced_at":"2026-06-18T19:31:17.649Z","repository":{"id":138907927,"uuid":"50105594","full_name":"RexOps/rex-fail","owner":"RexOps","description":"Module to fail on a defined count of errors","archived":false,"fork":false,"pushed_at":"2016-03-02T08:56:34.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-23T16:48:40.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/RexOps.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":"2016-01-21T12:18:06.000Z","updated_at":"2016-01-21T12:18:22.000Z","dependencies_parsed_at":"2023-04-25T05:40:24.393Z","dependency_job_id":null,"html_url":"https://github.com/RexOps/rex-fail","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RexOps/rex-fail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexOps","download_url":"https://codeload.github.com/RexOps/rex-fail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-fail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34505419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","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":[],"created_at":"2024-11-09T18:21:19.594Z","updated_at":"2026-06-18T19:31:17.630Z","avatar_url":"https://github.com/RexOps.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nFail - Fail execution if a defined number of tasks fail.\n\nIf you need to run one or more tasks on many servers and you want to stop the execution if a task fails on a specific number of systems, this module is for you.\n\n# SYNOPSIS\n```\nuse Fail;\n \ngroup servers =\u003e \"frontend-[01..05]\";\n   \ntask \"rollout\", sub {\n  fail {\n    max_fail_counter 2;  # fail the execution if the there are errors on 2 or more systems.\n    do_task [qw/\n      prepare\n      deploy_app\n      test_app\n      switch_instance\n    /];\n  };\n};\n  \ntask \"prepare\", group =\u003e \"servers\", sub {\n};\n   \ntask \"deploy_app\", group =\u003e \"servers\", sub {\n};\n  \ntask \"test_app\", group =\u003e \"servers\", sub {\n};\n   \ntask \"switch_instance\", group =\u003e \"servers\", sub {\n};\n```\n\n# COPYRIGHT\n\nCopyright 2015 FILIADATA GmbH\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-fail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexops%2Frex-fail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-fail/lists"}