Skip to content
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

Add support for terminate job endpoint and unify request_and_check function #44

Merged
merged 29 commits into from
Nov 26, 2024

Conversation

ninsbl
Copy link
Collaborator

@ninsbl ninsbl commented Nov 20, 2024

This PR adds support for terminating jobs (which has not been implemented yet: https://github.com/actinia-org/actinia-python-client/blob/main/src/actinia/job.py#L117)

It also extends the request_and_check function so it can be used on all kinds of requests and thus across all modules...

I have not checked tested all cases yet...

We are looking at using the python client more actively in ETL worksflows with Apache Airflow. So we may add support for STRDS (and similar additions) as well... Though no time line for that yet...

@ninsbl
Copy link
Collaborator Author

ninsbl commented Nov 20, 2024

Please note that I also increased the allowed line length to 88 characters in 75601cf.
Would be good to add pre-commit hooks and maybe a ruff configuration...

@ninsbl
Copy link
Collaborator Author

ninsbl commented Nov 21, 2024

OK, 75601cf is reverted, so line length is 79 again and tests pass ...

@ninsbl
Copy link
Collaborator Author

ninsbl commented Nov 25, 2024

OK, I do now have a PR in the pipeline for STRDS support that builds upon this PR (esp the modified request_and_check function). It would be nice to get this one in soon, so I can open a PR for STRDS support. For STRDS support mainly tests remain to be added...

@anikaweinmann
Copy link
Member

I hope we get our ruff configuration ready soon in https://github.com/mundialis/github-workflows so that we can use this.

Thank you very much for your changes :)

@anikaweinmann anikaweinmann merged commit c0c6907 into actinia-org:main Nov 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants