mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
feat: add dependency installer service and enhance task runner with dependency management
- Introduced a new DependencyInstallerService interface to define methods for managing dependency installation commands. - Implemented registry service for managing the DependencyInstallerService instance. - Enhanced the task runner to install dependencies if available, including command execution and logging for stdout and stderr. - Improved error handling and logging throughout the task runner's dependency installation process. - Updated the runner's methods to utilize the new dependency management features, ensuring better integration and functionality.
This commit is contained in:
10
core/interfaces/dependency_installer_service.go
Normal file
10
core/interfaces/dependency_installer_service.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package interfaces
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
type DependencyInstallerService interface {
|
||||
GetInstallDependencyRequirementsCmdBySpiderId(id primitive.ObjectID) (cmd *exec.Cmd, err error)
|
||||
}
|
||||
Reference in New Issue
Block a user