Преглед на файлове

listings_refresh should be in seconds

Eric Charles преди 5 години
родител
ревизия
37e8a801e2
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      docs/source/user/extensions.rst
  2. 3 3
      packages/extensionmanager-extension/examples/listings/Makefile

+ 1 - 1
docs/source/user/extensions.rst

@@ -335,7 +335,7 @@ You or your administrator can use the following traits to define the listings lo
 
 - ``blacklist_uris``: A list of comma-separated URIs to get the blacklist
 - ``whitelist_uris``: A list of comma-separated URIs to get the whitelist
-- ``listings_refresh_ms``: The interval delay in milliseconds to refresh the lists
+- ``listings_refresh_seconds``: The interval delay in seconds to refresh the lists
 - ``listings_request_options``: The optional kwargs to use for the listings HTTP requests
 
 For example, to enable blacklist, launch the server with ``--LabServerApp.blacklist_uris``.

+ 3 - 3
packages/extensionmanager-extension/examples/listings/Makefile

@@ -2,7 +2,7 @@ export BLACK_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/j
 # export BLACK_LIST_URIS=""
 # export WHITE_LIST_URIS="https://raw.githubusercontent.com/datalayer-jupyterlab/jupyterlab-listings-example/master/whitelist_only_jlab.json"
 export WHITE_LIST_URIS=""
-export LISTINGS_REFRESH_MS=30000
+export LISTINGS_REFRESH_MS=600
 export LISTINGS_REQUEST_OPTS="{'timeout': 10}"
 
 listings-uris:
@@ -17,7 +17,7 @@ dev: listings-uris
 	  --no-browser \
 	  --LabServerApp.blacklist_uris=${BLACK_LIST_URIS} \
 	  --LabServerApp.whitelist_uris=${WHITE_LIST_URIS} \
-	  --LabServerApp.listings_refresh_ms=${LISTINGS_REFRESH_MS} \
+	  --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_MS} \
 	  --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}
 
 watch: listings-uris
@@ -27,5 +27,5 @@ watch: listings-uris
 	  --watch \
 	  --LabServerApp.blacklist_uris=${BLACK_LIST_URIS} \
 	  --LabServerApp.whitelist_uris=${WHITE_LIST_URIS} \
-	  --LabServerApp.listings_refresh_ms=${LISTINGS_REFRESH_MS} \
+	  --LabServerApp.listings_refresh_seconds=${LISTINGS_REFRESH_MS} \
 	  --LabServerApp.listings_request_options=${LISTINGS_REQUEST_OPTS}