{"id":26748323,"url":"https://github.com/runabol/tork-demo-ml","last_synced_at":"2025-07-27T20:04:26.295Z","repository":{"id":269303271,"uuid":"907004306","full_name":"runabol/tork-demo-ml","owner":"runabol","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T14:57:50.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T10:17:21.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/runabol.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":"2024-12-22T14:48:01.000Z","updated_at":"2024-12-29T11:45:15.000Z","dependencies_parsed_at":"2024-12-22T15:37:57.092Z","dependency_job_id":"3754557b-2576-4429-8d5c-0169c0730a97","html_url":"https://github.com/runabol/tork-demo-ml","commit_stats":null,"previous_names":["runabol/tork-demo-ml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runabol/tork-demo-ml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Ftork-demo-ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Ftork-demo-ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Ftork-demo-ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Ftork-demo-ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runabol","download_url":"https://codeload.github.com/runabol/tork-demo-ml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runabol%2Ftork-demo-ml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417598,"owners_count":24083837,"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-07-27T02:00:11.917Z","response_time":82,"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":"2025-03-28T10:17:25.182Z","updated_at":"2025-07-27T20:04:26.238Z","avatar_url":"https://github.com/runabol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tork Sentiment Analysis demo\n\nAccompanying code for my article [Building scalable ML workflows](https://dev.to/acoh3n/building-scalable-ml-workflows-4f0k).\n\nDownload the latest [Tork binary](https://github.com/runabol/tork/releases/tag/v0.1.109) and untar it.\n\n```bash\ntar xvzf tork_0.1.109_darwin_arm64.tgz\n```\n\nStart Tork in `standalone` mode:\n\n```bash\n./tork run standalone\n```\n\nIf all goes well, you should something like this:\n\n```bash\n...\n10:36PM INF Coordinator listening on http://localhost:8000\n...\n```\n\nBuild the docker image that contains the sentiment analysis model\n\n```bash\ndocker build -t sentiment-analysis .\n```\n\nSubmit the job. Tork jobs execute asynchronously. Once a job is submitted you get back a job ID to track its progress:\n\n```bash\nJOB_ID=$(curl -s \\\n  -X POST \\\n  -H \"content-type:text/yaml\" \\\n  --data-binary @sentiment.yaml \\\n  http://localhost:8000/jobs | jq -r .id)\n```\n\nPoll the job's status and wait for it to complete:\n\n```bash\nwhile true; do \n  state=$(curl -s http://localhost:8000/jobs/$JOB_ID | jq -r .state)\n  echo \"Status: $state\"\n  if [ \"$state\" = \"COMPLETED\" ]; then; \n     break \n  fi \n  sleep 1\ndone\n```\n\nInspect the job results:\n\n```bash\ncurl -s http://localhost:8000/jobs/$JOB_ID | jq -r .result\n```\n\n```\nPositive\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Ftork-demo-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunabol%2Ftork-demo-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunabol%2Ftork-demo-ml/lists"}