{"id":20859738,"url":"https://github.com/schmichael/nomad-dispatch-repro","last_synced_at":"2026-04-19T21:34:12.762Z","repository":{"id":262910708,"uuid":"888745595","full_name":"schmichael/nomad-dispatch-repro","owner":"schmichael","description":"testing repo for nomad dispatching code","archived":false,"fork":false,"pushed_at":"2024-11-15T01:31:47.000Z","size":16,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T14:26:22.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schmichael.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-11-14T23:46:17.000Z","updated_at":"2024-11-15T00:15:11.000Z","dependencies_parsed_at":"2024-11-15T01:17:05.094Z","dependency_job_id":"07c71e9e-f525-4fcd-a20b-4db8e5e0a29b","html_url":"https://github.com/schmichael/nomad-dispatch-repro","commit_stats":null,"previous_names":["schmichael/nomad-dispatch-repro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schmichael/nomad-dispatch-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmichael%2Fnomad-dispatch-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmichael%2Fnomad-dispatch-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmichael%2Fnomad-dispatch-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmichael%2Fnomad-dispatch-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schmichael","download_url":"https://codeload.github.com/schmichael/nomad-dispatch-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schmichael%2Fnomad-dispatch-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28038907,"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-12-25T02:00:05.988Z","response_time":58,"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-18T04:52:57.632Z","updated_at":"2025-12-25T22:17:46.259Z","avatar_url":"https://github.com/schmichael.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nomad dispatch job tester\n\nFollowing dispatch jobs is harder than it ought to be. This is a test repro\nbased on real code to demonstrate how difficult it is to get right.\n\nThis code will register a parameterized job and then dispatch many instances of\nit: attempting to follow each dispatch to its completion.\n\n## prerequisites\n\n1. A running Nomad cluster (can be `nomad agent -dev`)\n2. `NOMAD_ADDR`, `NOMAD_TOKEN`, and any other env vars necessary to register\n\t jobs set.\n3. Go\n\n## running\n\n```\n# If you have the source checked out:\n$ go run .\n2024/11/14 15:56:06 [ 0:0   ] ok\n2024/11/14 15:56:06 [ 0:0   ] ok\n2024/11/14 15:56:06 [ 0:0   ] ok\n2024/11/14 15:56:06 [ 1:0   ] ok\n2024/11/14 15:56:06 [ 1:0   ] expected \"sleeper\" task but none is found for dispatch ID sleeper/dispatch-1731628560-bbbe6f03\n... snip ...\n2024/11/14 15:57:12 [ 2:9   ] ok\n2024/11/14 15:57:12 [ 2:9   ] ok\n2024/11/14 15:57:12 500 done after 1m12.399s with 53 errors\n```\n\nFor certain errors the allocation(s) in question will be written to the current\ndirectory as json such as: `feb895ce-2aaa-8460-c754-cf05a8127370.alloc.json`\n\nUse `-help` to see and adjust test parameters.\n\nThe test does *not* cleanup after itself, but only creates 1 job (and a number\nof dead allocs).\n\n## example output\n\nWith no errors as of 215630b2a785114d77bb648f24a17ee5bd0b1a64:\n```\n2024/11/14 16:09:00 500 done after 1m9.374s with 0 errors\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmichael%2Fnomad-dispatch-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmichael%2Fnomad-dispatch-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmichael%2Fnomad-dispatch-repro/lists"}