-
Notifications
You must be signed in to change notification settings - Fork 0
Add cancel endpoint, R progress monitor, and upgrade PyWPS #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (Pending CI tests passing?) 👍
| return error(f"Failed to update status: {str(e)}", "500 Internal Server Error") | ||
| finally: | ||
| session.close() | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, good error handling 👍
Nospamas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
requirements.txt
Outdated
| rpy2==3.3.6 | ||
| werkzeug==1.0.1 | ||
| wps-tools[r]==2.1.2 | ||
| wps-tools @ git+https://github.com/pacificclimate/wps-tools.git@i60-file-url-handling#egg=wps-tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't forget to release this one and use the version number once its ready :)
Adds support for cancelling running WPS processes. Upgrades to PyWPS v4.6.0 for improved job queue handling and adds finer-resolution progress updates via R console callbacks.
cancel_process.pyPOST /wps/cancel-process) that:SIGINTto the running processresponse.clean()WPS_STATUS.FAILED)response_tracker.pyresponseobjects by UUIDutils.pystop(...)response.clean()if cancelledupdate_status_with_check()to avoid updating progress on cancelled/failed jobsraise_if_failed()for missed cancellationsOther
pywpsandnchelpersdocs/cancellation.mdwith usage instructions.