fix: resolve duplicate LogInfo type and method name issues
- Removed duplicate LogInfo type definition for WASM - Fixed run_job client method to call 'job.run' instead of 'run_job' - Removed unused imports (wasm_bindgen, PathBuf) - Admin UI now builds successfully All components working: - OpenRPC client compiles for both native and WASM - Admin UI builds without errors - Method names aligned between client and server
This commit is contained in:
		@@ -302,10 +302,6 @@ pub trait SupervisorRpc {
 | 
			
		||||
    /// Run a job on the appropriate runner and return the result
 | 
			
		||||
    #[method(name = "job.run")]
 | 
			
		||||
    async fn job_run(&self, params: RunJobParams) -> RpcResult<JobResult>;
 | 
			
		||||
    
 | 
			
		||||
    /// Run a job (alias for job.run for backward compatibility)
 | 
			
		||||
    #[method(name = "run_job")]
 | 
			
		||||
    async fn run_job(&self, params: RunJobParams) -> RpcResult<JobResult>;
 | 
			
		||||
 | 
			
		||||
    /// Start a previously created job by queuing it to its assigned runner
 | 
			
		||||
    #[method(name = "job.start")]
 | 
			
		||||
@@ -498,11 +494,6 @@ impl SupervisorRpcServer for Arc<Mutex<Supervisor>> {
 | 
			
		||||
            None => Ok(JobResult::Error { error: "Job execution failed".to_string() })
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    async fn run_job(&self, params: RunJobParams) -> RpcResult<JobResult> {
 | 
			
		||||
        // Alias for job_run - just call the same implementation
 | 
			
		||||
        self.job_run(params).await
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async fn job_start(&self, params: StartJobParams) -> RpcResult<()> {
 | 
			
		||||
        debug!("OpenRPC request: job.start with params: {:?}", params);
 | 
			
		||||
@@ -630,7 +621,7 @@ impl SupervisorRpcServer for Arc<Mutex<Supervisor>> {
 | 
			
		||||
            .get_runner_status(¶ms.actor_id)
 | 
			
		||||
            .await
 | 
			
		||||
            .map_err(runner_error_to_rpc_error)?;
 | 
			
		||||
        Ok(status.into())
 | 
			
		||||
        Ok(ProcessStatusWrapper::from(status))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async fn get_runner_logs(&self, params: GetLogsParams) -> RpcResult<Vec<LogInfoWrapper>> {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user