Cache orders and jobs
Watch what the Tile Service is doing, cancel a cache run, and schedule caches so that they are rebuilt regularly.
Cached layers, vector sets and the tile caches of your own geoservices are built by the Tile Service. Every build is an order. A job creates orders on a schedule. You find both in Studio in the section Cache.
For when to cache at all, see Choosing how to publish your data.
Orders
Cache → Orders lists every cache run of the tenant, the newest first. You cannot create an order here. An order is created when you:
- click
Cachein the row of a desktop app, a Map View or a vector set, - click
Cache VectororCache Wmtsin the row of a geoservice underMy Geoservices, - use
Refresh geometry informationon cached vector data, - or when a job is due.
| Column | Shows |
|---|---|
Name | What is cached, for example the name of the app and its coordinate system, or the name of the job. |
State | Queued, Running, Finished, Canceling, Canceled or Error. |
Progress | Progress of the current step in percent. It starts again at 0 for each step: preparing, building, publishing. |
Message | The name of the machine that runs the Tile Service, and what it is doing, for example Building layer 'Parcels' (2 / 5). At the end: Published (5 / 5) layers. |
Start, End | When the Tile Service started and finished the order. |
The list updates itself while an order is waiting or running. An order that was started somewhere else after you opened the list appears when you reload the page.
The Tile Service works on one order at a time. Further orders wait in the state Queued.
Cancel, delete, repeat
- Cancel stops an order. A running order stops at the next possible point, which can take a moment; until then its state is
Canceling. - Delete removes a finished or canceled order from the list. Orders are never removed automatically, so clear the list from time to time: select the rows and use the delete button of the toolbar.
- There is no button to run an order again. Start the cache again where you started it the first time.
If the Tile Service is stopped while an order is running, the order starts again from the beginning when the service is back.
When an order ends with Error
The list does not show the reason. Compare the numbers in the message: Published (3 / 5) layers means that two layers failed. The reason is in the log of the tenant under Security → Logs. See Logs and troubleshooting.
Common reasons are a layer without a valid coordinate system or extent, and a Tile Service that cannot reach the database or the warehouse folder.
To remove an order in the state Error from the list, select its row and use the delete button of the toolbar.
Jobs
A job builds caches at a time you choose, once or repeatedly. Create one under Cache → Jobs → New.
| Field | Meaning |
|---|---|
Name | Name of the job. The orders it creates carry this name. |
SRID | The coordinate system in which the caches are built. Only needed for the source Datasets. A vector set and a geoservice bring their own. |
Start | Date and time of the first run, in the time of your computer. |
Repeat | Run the job again and again. |
Every, Interval | How often: a number and Hour, Day or Week. |
Vectors | What to cache: Datasets lets you pick cached vector data, Vector Set a vector set, My GeoService a geoservice with a tile cache. For a vector set and a geoservice pick one entry per job. |
The list of jobs shows the name and, under Next, the next planned run. It has no column for the last run. To see whether a job has run, look for an order with its name under Orders.
Good to know:
- A job without
Repeatruns once and stays in the list.Nextkeeps showing the old date. Open and save the job to arm it again. - A missed run is made up for. If the Tile Service was not running at the planned time, the job runs as soon as the service is back.
- After a long outage a repeating job runs once for every missed interval. An hourly job that missed three days creates 72 orders in a row. If the Tile Service will be down for longer, switch off
Repeatin such jobs first, or cancel the surplus orders afterwards. - Edits to the data do not start a job. A cache is only as current as its last run. Choose the interval to match how often the data changes.