:mod:`weaver.wps_restapi.jobs.jobs` =================================== .. py:module:: weaver.wps_restapi.jobs.jobs Module Contents --------------- .. data:: LOGGER .. function:: get_local_status_location(url_status_location, container, must_exist=True) -> Optional[AnyStr] Attempts to retrieve the local file path corresponding to the WPS status location as URL. :param url_status_location: URL reference pointing to some WPS status location XML. :param container: any settings container to map configured local paths. :param must_exist: return only existing path if enabled, otherwise return the parsed value without validation. :returns: found local file path if it exists, ``None`` otherwise. .. function:: check_status(url=None, response=None, sleep_secs=2, verify=True, settings=None) -> WPSExecution Run :func:`owslib.wps.WPSExecution.checkStatus` with additional exception handling. :param url: job URL where to look for job status. :param response: WPS response document of job status. :param sleep_secs: number of seconds to sleep before returning control to the caller. :param verify: Flag to enable SSL verification. :param settings: Application settings to retrieve any additional request parameters as applicable. :return: OWSLib.wps.WPSExecution object. .. function:: get_job(request) -> Job Obtain a job from request parameters. :returns: Job information if found. :raises: HTTPNotFound with JSON body details on missing/non-matching job, process, provider IDs. .. function:: validate_service_process(request) -> Tuple[Union[None, AnyStr], Union[None, AnyStr]] Verifies that service or process specified by path or query will raise the appropriate error if applicable. .. function:: get_queried_jobs(request) Retrieve the list of jobs which can be filtered, sorted, paged and categorized using query parameters. .. function:: get_job_status(request) Retrieve the status of a job. .. function:: cancel_job(request) Dismiss a job. Note: Will only stop tracking this particular process (WPS 1.0 doesn't allow to stop a process) .. function:: get_results(job, container) -> JSON Obtains the results with extended full WPS output URL as applicable and according to configuration settings. .. function:: get_job_results(request) Retrieve the results of a job. .. function:: get_job_exceptions(request) Retrieve the exceptions of a job. .. function:: get_job_logs(request) Retrieve the logs of a job. .. function:: get_job_output(request)