tchart Well-Known Member Licensed User Longtime User Mar 29, 2017 #1 I have a web server written in B4J. I'd like to update some data on a schedule. Does any functionality exist to execute an Sub on a schedule? Edit: Sorry to just to clarify, as an example I have a page which reformats a JSON feed (from another website) into a searchable table. The JSON feed is updated when a user visits the page and the data is more than 60 minutes out of date. The problem is there is a lag with the data update so I would prefer to make it a background task that fires ever 60 minutes. Last edited: Mar 29, 2017
I have a web server written in B4J. I'd like to update some data on a schedule. Does any functionality exist to execute an Sub on a schedule? Edit: Sorry to just to clarify, as an example I have a page which reformats a JSON feed (from another website) into a searchable table. The JSON feed is updated when a user visits the page and the data is more than 60 minutes out of date. The problem is there is a lag with the data update so I would prefer to make it a background task that fires ever 60 minutes.
tchart Well-Known Member Licensed User Longtime User Mar 29, 2017 #2 Oh, ignore me! Looks like background workers is what I need. https://www.b4x.com/android/forum/threads/server-background-workers.73269/ Upvote 0
Oh, ignore me! Looks like background workers is what I need. https://www.b4x.com/android/forum/threads/server-background-workers.73269/