Skip to content

Start process via actinia_module endpoint#64

Merged
mmacata merged 13 commits intoactinia-org:mainfrom
mmacata:process-actinia_modules
May 14, 2025
Merged

Start process via actinia_module endpoint#64
mmacata merged 13 commits intoactinia-org:mainfrom
mmacata:process-actinia_modules

Conversation

@mmacata
Copy link
Member

@mmacata mmacata commented May 9, 2025

This PR allows to start a process via actinia_module endpoint.

  • new HTTP POST endpoint /actinia_modules/<actiniamodule>/process
  • only ephemeral processing is allowed for now
  • the project is read from the actinia_module. Example template:
{
	"id": "ndvi",
	"description": "Generate NDVI map",
	"projects": ["nc_spm_08"],
	"template": {
...

in the future, multiple projects can be added comma separated to indicate for which project the process chain template can be used. For now the project to run the process in will be read from the template, so only one project should be defined.

  • the schema for the HTTP POST body is not yet defined. It might be close to OGC API Processes. Right now, only a single value can be passed in the HTTP POST body without parameter name. It will then be checked for variable names inside the template and if only one is given, it will be used. If multiple variables are needed, this is not yet implemented as no schema is defined.
  • the template is loaded, the one value from the request body is filled and the process chain is passed to actinia-core for processing.
  • Response is the usual actinia-core response for processes containing resource_id which can be polled.

@mmacata mmacata marked this pull request as ready for review May 13, 2025 15:27
Copy link
Member

@linakrisztian linakrisztian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, also to have the tests. Just some very minor comments.

mmacata and others added 2 commits May 14, 2025 15:36
Co-authored-by: linakrisztian <106728040+linakrisztian@users.noreply.github.com>
@mmacata mmacata requested a review from linakrisztian May 14, 2025 13:44
@mmacata mmacata merged commit 28221c2 into actinia-org:main May 14, 2025
7 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