Changeset 7610


Ignore:
Timestamp:
16/10/10 21:51:47 (9 years ago)
Author:
astephen
Message:

job viewer page added some extra info and a "stop polling" link.

Location:
cows_wps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/controllers/jobviewer.py

    r7539 r7610  
    4747        job_as_plots = "There are no plots available in the outputs of this job." 
    4848 
    49         resp = """<div id="view_options" style="background: #EEF4FF; border: 2px outset blue; padding: 5px;"> 
     49        # General info first... 
     50        resp = """Please note that offline jobs are scheduled and may take a long time to run. This page will continue to poll offline jobs when they are running unless you click the "stop polling" option when it is visible. You will receive an e-mail when your offline job has run so you do not need to stay on this page. Note that you can view all previous jobs on the <a href="/jobs">Jobs page</a>.<br><br>""" 
     51 
     52        resp += """<div id="view_options" style="background: #EEF4FF; border: 2px outset blue; padding: 5px;"> 
    5053                <a href="javascript:switchViewTo('table_view');">Normal View</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;""" 
    5154 
  • cows_wps/trunk/cows_wps/public/js/ui/jobviewer_utils.js

    r7106 r7610  
    55 
    66*/ 
     7 
     8// Global variables 
     9var keep_polling = true; 
    710 
    811// generic hide element function 
     
    5457 
    5558 
     59function stopPolling() { 
     60        keep_polling = false; 
     61} 
     62 
     63 
    5664function parsePollResponse(xml) { 
    5765    $(xml).find("ProcessSucceeded").each(function() 
     
    93101    $("#poll_info").append("...Polling again in 3 seconds..."); 
    94102    $("#poll_info").append('<br><a href="/user/cancel/Ag.Stephens/' + job_id + '">Cancel this job</a>'); 
    95     setTimeout("pollWPS();", 3000);  
     103    $("#poll_info").append(' | <a href="javascript:stopPolling();">stop polling</a>'); 
     104 
     105    if (keep_polling == true) { 
     106        setTimeout("pollWPS();", 3000);  
     107    } else { 
     108        $("#poll_info").empty(); 
     109        $("#poll_info").append("Polling has now been stopped. Please reload the page if you wish to see the status of this job."); 
     110    } 
    96111} 
  • cows_wps/trunk/process_configs/WCSWrapper.ini

    r7565 r7610  
    2121[DataInputs] 
    2222WCSEndPoint = string 
     23WCSEndPoint.possible_values = http://ceda-wps1.badc.rl.ac.uk:8080/coapec_100yr_data/wcs?service=WCS&request=GetCapabilities&id=None http://ceda-wps1.badc.rl.ac.uk:8080/ecmwf-era-interim_ggat_data/wcs?service=WCS&request=GetCapabilities&id=None http://ceda-wps1.badc.rl.ac.uk:8080/ecmwf-era-interim_ggfs_data/wcs?service=WCS&request=GetCapabilities&id=None http://ceda-wps1.badc.rl.ac.uk:8080/ecmwf-era-interim_waas_data/wcs?service=WCS&request=GetCapabilities&id=None http://ceda-wps1.badc.rl.ac.uk:8080/HadCM3_aaxze_apm/wcs?service=WCS&request=GetCapabilities&id=None http://ceda-wps1.badc.rl.ac.uk:8080/HadCM3_aeabs_apy/wcs?service=WCS&request=GetCapabilities&id=None  
    2324 
    2425Variable = string.list 
Note: See TracChangeset for help on using the changeset viewer.