{"id":22059219,"url":"https://github.com/opentable/grunt-http-poll","last_synced_at":"2025-10-11T14:31:18.748Z","repository":{"id":27292218,"uuid":"30765954","full_name":"opentable/grunt-http-poll","owner":"opentable","description":"polls a http endpoint until it sees the desired status code","archived":false,"fork":false,"pushed_at":"2016-02-21T02:08:22.000Z","size":136,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-01-15T14:19:18.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/opentable.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}},"created_at":"2015-02-13T16:54:53.000Z","updated_at":"2019-04-15T10:52:39.000Z","dependencies_parsed_at":"2022-09-26T22:00:23.018Z","dependency_job_id":null,"html_url":"https://github.com/opentable/grunt-http-poll","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/opentable%2Fgrunt-http-poll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fgrunt-http-poll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fgrunt-http-poll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fgrunt-http-poll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentable","download_url":"https://codeload.github.com/opentable/grunt-http-poll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235683902,"owners_count":19029089,"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-30T17:27:34.772Z","updated_at":"2025-10-11T14:31:13.454Z","avatar_url":"https://github.com/opentable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-http-poll\n[![Build Status](https://travis-ci.org/opentable/grunt-http-poll.png?branch=master)](https://travis-ci.org/opentable/grunt-http-poll) [![NPM version](https://badge.fury.io/js/grunt-http-poll.png)](http://badge.fury.io/js/grunt-http-poll) ![Dependencies](https://david-dm.org/opentable/grunt-http-poll.png)\n\nPoll a http endpoint until you see the desired statuscode.\n\nIn our case we use it after issuing the stop command to keep polling until we see the server has stopped.\n\ninstallation:\n\n```npm install --save grunt-http-poll```\n\nusage:\n\n```\ngrunt.initConfig({\n  'http-poll':{\n    options: {\n      endpoint: 'http://myserver.com/someendpoint',\n      statuscode: 502, // desired status code\n      pollinterval: 1000, // time between requests\n      timeout: 60000 // if no change seen by the timeout then throw an exception\n      timeoutIsError: false // treat the timeout elapse as an error (fail) or not (continue), default: true\n    }\n  }\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fgrunt-http-poll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentable%2Fgrunt-http-poll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fgrunt-http-poll/lists"}