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
3
votes
1 answer

Jenkins poll or push trigger job run for shared library changes too

I have Jenkins Pipeline job define in my git repo as. // File: deployment/jenkinsfiles/staging/Merge @Library("my_shared_lib") _ import com.company.myteam.Constants pipeline { agent { label "common" } triggers { pollSCM("H/2 * *…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
3
votes
2 answers

Android: connectivity issues in background thread after alarm when "always-on" turned off

Problem description: In my android App, I experience connectitity issues when doing a remote HTTP ("polling") call from an AsyncTask that was started after an alarm went off. The lookup works very well when the standard Android setting "Enable…
Jörg
  • 2,441
  • 1
  • 20
  • 18
3
votes
2 answers

Polling an api in python for a specific json element

I am requesting data from an api with a json response. The json content is dynamically changing all the time. I would like my python script to continuously run and look in the json for example every 5 seconds, until a given statement is true, which…
aquatic7
  • 615
  • 1
  • 6
  • 19
3
votes
3 answers

AJAX Progress Bar - Polling, Comet?

I would like some advice on how to implement the following: I would like to make my users aware of the progress of a task that is running on my server via AJAX. My server runs a PHP script that downloads a file via shell command using the popen…
Abs
  • 56,052
  • 101
  • 275
  • 409
3
votes
2 answers

CCTray v1.6 Continuously Disconnects and Reconnects to v1.4.4 Server When Polling

Background: I am investigating CCNet backwards compatibility with versions 1.4.4.75 and 1.6.7981.1: an older server with a newer version of CCTray, and a newer server with an older version of CCTray. I have installed CCNet 1.4.4.75 and am running it…
Sameer Singh
  • 1,358
  • 1
  • 19
  • 47
3
votes
3 answers

jquery onscreen run offscreen pause

Is there a way to pause a long polling script when someone leaves a page up but is not viewing it? So if I have multiple tabs or windows of the app open only the one I am actively viewing would have the active long polling script running?
David
  • 728
  • 2
  • 14
  • 28
3
votes
2 answers

How to avoid a busy while loop in event-driven Java

I am currently developing my event driven Java software in the following fashion (this is the essence of my main method): while(true) { Event event = eventListener.poll(); if(event != null) { // do something } else { //…
ABC
  • 693
  • 1
  • 10
  • 22
3
votes
1 answer

Use redux connect function passing props.children as React element

I need a component that starts polling for data from an API as soon as it gets mounted and it stops when unmounted. The data must be available for a child component. This is my current implementation skeleton class External extends Component { …
Naigel
  • 9,086
  • 16
  • 65
  • 106
3
votes
0 answers

Kafka poll suddenly get stuck

I have a Java consumer that runs continuously with a lot of data and messages.. sometimes, the program gets stuck on consumer.poll the data.. it seems like deadlock or infinite loop but I’m not sure about it. There is no exception thrown and the…
ronenpi18
  • 56
  • 4
3
votes
2 answers

React Native Polling

I'm trying to implement some api polling code, this is what I've got so far: async retrieveNotifications() { const res = await fetch(url) if (res.status === 200) { this.props.setNotifications(res.data) } setTimeout(() => { …
Konstantin Paulus
  • 1,943
  • 2
  • 10
  • 22
3
votes
2 answers

How to run long running operation asynchronously and show loading for the user in ASP.Net Ajax and poll for the result?

I've a heavy operation which takes long time to be completed in my asp.net application. I don't want to run the entire operation in one request which may result in a TimeOut error. Instead I want to invoke the operation in a separate thread and poll…
NLV
  • 21,141
  • 40
  • 118
  • 183
3
votes
1 answer

Java & Spring - polling the http endpoint until the server finishes processing

I'm struggling with picking up the right way to poll server with constant interval (eg ~1 second). The flow goes as follows client application receives message, that indicates the polling could start with provided parameters (it doesn't poll when…
hopsey
  • 1,383
  • 1
  • 13
  • 23
3
votes
2 answers

How to keep a local git mirror up-to-date without polling?

The scenario: Our development team uses Jenkins for continuous integration, and some of our code is open source and therefore hosted at GitHub.com. We have a local mirror of the relevant GitHub repositories, and our local GitBlit server is set to…
Jeremy Friesner
  • 70,199
  • 15
  • 131
  • 234
3
votes
2 answers

API polling and timeout

I have a polling use-case where: I want to call an API that, based on business logic, returns numbers(1-10) or error (network issue/ exception in API etc..) instantly (1.5-2 sec). If the API returns an error (network issue/ exception in API etc..)…
chirag_lad
  • 229
  • 1
  • 16
3
votes
3 answers

How to access value outside the .subscribe in angular 2 polling service

// I was trying to get the values from outside the subscribe but it cannot assign to any variable. In my project, get the json content using http.post() method and assigned it to a variable. I want to access these variable value outside the…
Nuwan Bandara
  • 35
  • 1
  • 1
  • 6