<div dir="ltr">Hi Grid,<div><br></div><div>(Dropped registry, dal from this thread)</div><div><br></div><div>I thought I&#39;d offer my opinion on the support of synchronous job running in UWS...</div><div><br></div><div><div class="gmail_quote"><div dir="ltr">On Mon, Jun 11, 2018 at 3:14 PM Mark Taylor &lt;<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My feeling is that if you&#39;re going to use sync mode, it&#39;s because<br>
you don&#39;t want to muck about with all that job ID business.<br>
I always thought of UWS as a protocol for clients that want job metadata<br>
(either to support long-running jobs or for other reasons)<br>
and synchronous services as for clients that don&#39;t.<br></blockquote><div><br></div><div>Yes, that&#39;s a good point.  The UWS 1.1 spec does provide a suggested (informative) recipe for implementing a sync endpoint.  If a service were written with that recipe then clients could indeed ignore all the jobID business by simply choosing to follow all redirects on the initial job request.</div><div><br></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">    <a href="http://ivoa.net/documents/UWS/20161024/REC-UWS-1.1-20161024.html#SynchronousService">http://ivoa.net/documents/UWS/20161024/REC-UWS-1.1-20161024.html#SynchronousService</a><br></span></div><div><br>I think it is often in the hands of the user as to whether a job should be run synchronously or asynchronously.  They would prefer an immediate result so would favour synchronous but would understand that for some tasks asynchronous would be better (error handling, timeouts, lots of output, etc...) . For these types of services where the need for asynchronous execution is required, you may want to offer a similar experience for clients to potentially run the same things synchronously.  That is, the same way of gathering the task parameters and the same way of getting at results.  So, I think there&#39;s a case to be made that, if a there is a need for async support and a desire to offer sync for convenience, they should be be offered in a similar manner.</div><div><br></div><div>(Looking at it another way: would there ever be value in writing a sync-only service using the UWS pattern?  I would argue probably yes.)<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
But at least I would be wary of, e.g., requiring something like<br>
a TAP sync endpoint to be marked up in such a way that it has<br>
to be implemented in a UWS-like way, rather than just delivering<br>
the result and forgetting about it.  I know some services do<br>
implement sync on top of async so that would not be an implementation<br>
issue, but others may not.<br></blockquote><div><br></div><div>Yes, I think official UWS sync support would have to be the same as simply delivering the results.  (Maybe with the condition that clients must choose to follow all redirects.)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I am not violently opposed to using UWS as a place to to hang<br>
these sync/async markers, but I still find it a bit unintuitive<br>
to have UWS talking about synchronous services.<br></blockquote><div><br></div><div>I can understand this point but I also think that since it is the same work being executed (with sync or async) we may as well make them as similar as possible in the other ways for clients.</div><div><br></div><div>More below...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Mark<br>
<br>
On Wed, 30 May 2018, Patrick Dowler wrote:<br>
<br>
&gt; The  home for these concepts depend on a couple of predictions we might<br>
&gt; make:<br>
&gt; <br>
&gt; 1. Is it useful for UWS to be extended to specify interface behaviour for<br>
&gt; synchronous job execution? TAP, SODA, and VOSpace all have &quot;jobs&quot; that can<br>
&gt; run  in either mode and s/w choses the endpoint with the behaviour it<br>
&gt; wants... the minimal &quot;specification&quot; of UWS-sync would be a standard way<br>
&gt; for a client executing a sync job to get the jobID and access it via a<br>
&gt; joblist (eg in UWS-next)<br></blockquote><div><br>As per above, my feeling is that there is a benefit to UWS offering sync support.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; <br>
&gt; 2. Ae there common metadata about the UWS job endpoint that could be<br>
&gt; conveyed by adding content to the UWSRegExt? e.g. will UWSRegExt go beyond<br>
&gt; providing tagging interface in future? This one I am less sure about.<br>
&gt; TAPRegExt already describes some of the UWS job control limits, for<br>
&gt; example, but that reg-ext defines a new capability type (the type of<br>
&gt; job)... I do have some UWS-defined features that are interface-specific  so<br>
&gt; there are use cases.<br></blockquote><div><br>I know that there are a couple of UWS client software tools out there but I haven&#39;t taken a close look at them.  I am wondering if these tools can be used (without plugins or customization) to speak to UWS services such as TAP and SODA independently.  If so, then I imagine it puts a lot of responsibility in the hands of the user to formulate the correct input for the different services.  Perhaps this is an area where extended UWS metadata could help...<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; <br>
&gt; I do think it is important for us, as a community, to find ways to do small<br>
&gt; things and get them done in a short time, and then iterate more rapidly on<br>
&gt; minor versions.<br></blockquote><div><br>+1 on that.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; <br>
&gt; my 2c,<br>
&gt; <br>
&gt; Pat<br></blockquote><div><br></div><div>Cheers,</div><div>Brian</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; <br>
&gt; On 29 May 2018 at 17:21, Brian Major &lt;<a href="mailto:major.brian@gmail.com" target="_blank">major.brian@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; Hi DAL, Registry and Grid,<br>
&gt; &gt;<br>
&gt; &gt; Sorry for the wide distribution but this touches all three working groups.<br>
&gt; &gt;<br>
&gt; &gt; An initial note for the UWS Registry Extension has been written and can be<br>
&gt; &gt; viewed here:<br>
&gt; &gt;<br>
&gt; &gt;     <a href="http://wiki.ivoa.net/internal/IVOA/IvoaGridAndWebServices/" rel="noreferrer" target="_blank">http://wiki.ivoa.net/internal/IVOA/IvoaGridAndWebServices/</a><br>
&gt; &gt; UWSRegExt.pdf<br>
&gt; &gt;<br>
&gt; &gt; It is very simple: the essence of the note is to allow registry interface<br>
&gt; &gt; entries to &#39;tag&#39; interfaces as being UWS synchronous or asynchronous<br>
&gt; &gt; endpoints.  This is to allow implementers of UWS services (TAP is the<br>
&gt; &gt; working example) the freedom of having separate URLs for interfaces with<br>
&gt; &gt; various security methods (supported authentication) and to have custom URLs<br>
&gt; &gt; for sync and async endpoints.<br>
&gt; &gt;<br>
&gt; &gt; Comments are welcome.  There is still uncertainty about how the<br>
&gt; &gt; information in this note should be brought in as a document for reference<br>
&gt; &gt; by TAP 1.1, so comments on that are welcome too.<br>
&gt; &gt;<br>
&gt; &gt; Brian<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Feb 22, 2018 at 4:58 PM Brian Major &lt;<a href="mailto:major.brian@gmail.com" target="_blank">major.brian@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi Grid, Registry,<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; At the Santiago Interop we decided to identify the sync and async<br>
&gt; &gt;&gt; endpoints of a TAP 1.1 capability by setting the &#39;type&#39; of the Interface<br>
&gt; &gt;&gt; element as one of either<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     uws:Sync or<br>
&gt; &gt;&gt;     uws:Async<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; instead directly in the standardID of the capability like<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     ivo://<a href="http://ivoa.net/std/tap#sync-1.1" rel="noreferrer" target="_blank">ivoa.net/std/tap#sync-1.1</a> and<br>
&gt; &gt;&gt;     ivo://<a href="http://ivoa.net/std/tap#async-1.1" rel="noreferrer" target="_blank">ivoa.net/std/tap#async-1.1</a><br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; We have implemented this in our TAP (1.1) services using the XSD here:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;     <a href="https://github.com/opencadc/reg/blob/master/cadc-registry/" rel="noreferrer" target="_blank">https://github.com/opencadc/reg/blob/master/cadc-registry/</a><br>
&gt; &gt;&gt; src/main/resources/UWSRegExt-v0.1.xsd<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; And it is all working as expected, no issues.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Now I am wondering now where this XSD can be placed within the IVOA and<br>
&gt; &gt;&gt; how it can be documented to describe the intended use.  This will need to<br>
&gt; &gt;&gt; go somewhere official ahead of TAP 1.1.  Any suggestions are welcome.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks,<br>
&gt; &gt;&gt; Brian<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; Patrick Dowler<br>
&gt; Canadian Astronomy Data Centre<br>
&gt; Victoria, BC, Canada<br>
&gt; <br>
<br>
--<br>
Mark Taylor   Astronomical Programmer   Physics, Bristol University, UK<br>
<a href="mailto:m.b.taylor@bris.ac.uk" target="_blank">m.b.taylor@bris.ac.uk</a> +44-117-9288776  <a href="http://www.star.bris.ac.uk/~mbt/" rel="noreferrer" target="_blank">http://www.star.bris.ac.uk/~mbt/</a><br>
</blockquote></div></div></div>