Add cancel endpoint, R progress monitor, and upgrade PyWPS#68
Merged
QSparks merged 47 commits intoci-climatex-demofrom Apr 3, 2025
Merged
Add cancel endpoint, R progress monitor, and upgrade PyWPS#68QSparks merged 47 commits intoci-climatex-demofrom
QSparks merged 47 commits intoci-climatex-demofrom
Conversation
Nospamas
approved these changes
Mar 27, 2025
| return error(f"Failed to update status: {str(e)}", "500 Internal Server Error") | ||
| finally: | ||
| session.close() | ||
|
|
There was a problem hiding this comment.
This looks good, good error handling 👍
Contributor
Author
Nospamas
approved these changes
Apr 2, 2025
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.
Probably don't forget to release this one and use the version number once its ready :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.