{"id":17256624,"url":"https://github.com/princemaple/tusk","last_synced_at":"2026-01-29T11:37:18.614Z","repository":{"id":62430541,"uuid":"137203405","full_name":"princemaple/tusk","owner":"princemaple","description":"Elixir task library with retry, success/failure callback and timeout","archived":false,"fork":false,"pushed_at":"2023-06-05T06:44:24.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T03:27:46.183Z","etag":null,"topics":["callback","elixir","retry","supervisor","task","timeout"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/princemaple.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2018-06-13T10:58:24.000Z","updated_at":"2024-03-11T12:10:44.000Z","dependencies_parsed_at":"2025-04-14T06:11:12.563Z","dependency_job_id":"fbc6e67c-f176-4976-8db2-791dab041cf4","html_url":"https://github.com/princemaple/tusk","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/princemaple/tusk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princemaple%2Ftusk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princemaple%2Ftusk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princemaple%2Ftusk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princemaple%2Ftusk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princemaple","download_url":"https://codeload.github.com/princemaple/tusk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princemaple%2Ftusk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28876745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["callback","elixir","retry","supervisor","task","timeout"],"created_at":"2024-10-15T07:14:53.786Z","updated_at":"2026-01-29T11:37:18.576Z","avatar_url":"https://github.com/princemaple.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tusk\n\nElixir task library with retry, success/failure callback and timeout\n\n**Built on top of supervisors**\n\n## Installation\n\nThe package can be installed by adding `tusk` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:tusk, \"~\u003e 0.1\"}\n  ]\nend\n```\n\n## Usage\n\n- Add Tusk.DynamicSupervisor to your supervision tree\n- `Tusk.run(sup, task, options)`\n  - where `sup` is the dynamic supervisor\n  - `task` can be an `{m, f, a}` tuple or a closure (anonymous function)\n- Available options\n  - `timeout:` integer, `:infinity` or `nil`\n    - both `:infinity` and `nil` disable timeout\n  - `callbacks:`\n    - `on_success:` mfa or closure\n    - `on_failure:` mfa or closure\n    - `on_error:` mfa or closure\n    - on_success gets called with the task result\n    - on_failure is called once after no more retries\n    - on_error is called every time an error occurs\n    - on_failure and on_error get called with an error\n  - `no_retry_exceptions:`\n    - a list of Exception names that if seen, give up retrying\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincemaple%2Ftusk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincemaple%2Ftusk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincemaple%2Ftusk/lists"}