Questions tagged [polling]

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Polling is actively sampling the status of an external device by a client program as a synchronous activity.

Reference:

1451 questions
6
votes
3 answers

How do I JSON.parse an array in a Zapier Trigger?

I am trying to JSON.parse the array "data." I need to be able to pass the array as the root. { "data": [ { "type": "name", "id": "123" } ] } The response should look like this containing only objects. Zapier doesn't seem to…
Wesley Davis
  • 87
  • 1
  • 1
  • 4
6
votes
2 answers

Hudson infinite loop polling for changes in Git repository?

The git plugin for hudson works well. However, the build script must update a version number in the files in the repository, commit, and push back to the repository. When Hudson polls next to check for changes, it goes into an infinite loop because…
Wayne
  • 2,959
  • 3
  • 30
  • 48
6
votes
1 answer

Non-Flickering Polling in Angular with REST Backend

I managed getting a constant polling of the backend functional using this answer. But on every timeout the UI is flickering (empty model for a short time). How can I update the model (and the view respectively) after the new data arrived in order to…
user1126545
  • 73
  • 1
  • 5
6
votes
1 answer

Best practices in iOS for polling a webservice about task completion

Let's say we have an iOS app that communicates with a web service. Some requests are delegated to another web service, so that a HTTP 200 status code is returned immediately while the operation is in progress on the other side: |iOS app| …
elitalon
  • 9,191
  • 10
  • 50
  • 86
6
votes
2 answers

Asp.Net - Offload processing to external application

I have a asp.net website which processes requests using a 3rd party exe. Currently my workflow is User accesses website using any browser and fills out a form with job details Website calls a WCF self hosted windows service which is listening on a…
user1625066
6
votes
1 answer

How to write a polling function in Python?

I am trying to write a function that reads the variable every 1 minute and return the value of each time. The variable name is proc: proc = subprocess.Popen(['sshpass', '-p', password, 'rsync', '-avz', '--info=progress2', source12, destination], …
user1881957
  • 3,258
  • 6
  • 34
  • 42
6
votes
3 answers

POST to PHP with server sent events?

Is it possible to use SSE to send POST data to PHP like in Ajax? I've been using AJAX now for quite a while with bad results in long-polling technicues. I have also been thinking about WebSockets, but it seems a bit redundant.
user1431627
  • 815
  • 3
  • 13
  • 30
6
votes
4 answers

Android Polling from a Server periodically

I want to pull some data from a server every x minutes. IF the info contains certain information I would like to create a notification. I want this polling to happen even when the app is in the background, or the phone is asleep. I have a few…
James Fazio
  • 6,370
  • 9
  • 38
  • 47
6
votes
6 answers

Using select/poll/kqueue/kevent to watch a directory for new files

In my app I need to watch a directory for new files. The amount of traffic is very large and there are going to be a minimum of hundreds of new files per second appearing. Currently I'm using a busy loop with this kind of idea: while True: …
gdm
  • 905
  • 1
  • 15
  • 21
5
votes
1 answer

Can't stop primefaces poll

I'm implementing some dialogs that need a common poll to get fresh values from the server. I'm trying use p:poll, but unfortunately I cant stop it. I start the poll when a user clicks on a button in one dialog, and try stop that when a user clicks a…
brevleq
  • 2,081
  • 10
  • 53
  • 97
5
votes
2 answers

Website architecture design requiring real-time polling from external servers

I have a game running in N ec2 servers, each with its own players inside (lets assume it a self-contained game inside each server). What is the best way to develop a frontend for this game allowing me to have near real-time information on all the…
fabiopedrosa
  • 2,521
  • 7
  • 29
  • 42
5
votes
2 answers

AWS SQS: how do we consume message

I want to convert one of my synchronous API into asynchronous. And I believe queue are one way to do this. Like a publisher will push(synchronously) the message into queue which will be consumed by consumer API from the queue. I was curious to know…
Kuldeep Yadav
  • 1,664
  • 5
  • 23
  • 41
5
votes
1 answer

how to poll message from SQS using celery worker, the message is in JSON format and worker not able to decode the format

how to poll message from SQS using celery worker, the message is in JSON format and worker not able to decode the format Note: These messages are not sent into SQS using celery beat, This queue is subscribed from SNS my celery worker command is:…
5
votes
4 answers

Correct way to poll a webservice in an IPhone app

I am trying to determine the best strategy to poll a webservice once a minute, parse the xml returned and then update an object stored in a shared instance. This process needs to run in a separate thread, and will continue as long as the app is…
JohnRock
  • 6,795
  • 15
  • 52
  • 61
5
votes
2 answers

Jenkins PollScm for specific repository

I want to build a project using two Git repositories. One of them contains the source code, while the other has the build and deployment scripts. I am using Jenkins pipeline for building my project. The pipeline scripts are in Jenkins-pipeline…