The eae-compute service provides execution capabilities to the eae eco-system. While managing jobs is expected to be handled by the eae-scheduler, running them is the role of eae-compute. To do so, the eae-compute service exposes a REST interface.
We provide the API documentation in swagger 2.0 format. You can paste the content in the swagger editor to render the API documentation.
At its construction, the eaeCompute
server receives a configuration object that MUST respect the following schema:
EAE_JOB_TYPE_PYTHON2
From the eae-utils package. Runs a python script using python2 cliEAE_JOB_TYPE_PIP
Use the pip command. Support both install and uninstall via this job parametersEAE_JOB_TYPE_R
From the eae-utils package. Runs an R script using Rscript cli
To add support for more Job types:
- Create a new class that inherits from the
JobExecutorAbstract
source. - Implement the abstract methods
_preExecution
,_postExecution
,startExecution
andstopExecution
, with their expected behavior. - Insert your new job type allocation into the JobFactory.