This Ember.js addon provides a service for polling the Rails API provided by the job_state gem.
You can inject the service anywhere in your app. It needs one piece of information - the Resque job UUID used as a key by job_state - and it will then poll the server until the response is "error" or "success". At that point, it will invoke appropriate callbacks (provided those have been set up) and stop polling until told to start again.
You can set up the callbacks in advance, or provide the callbacks and job UUID when asking the service to start polling.
TODO: Provide example
TODO: Provide example
TODO: Provide example
TODO: Provide example
git clone <repository-url>
this repositorycd ember-cli-job-state
npm install
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.