milenkovicm commented on issue #1563:
URL: 
https://github.com/apache/datafusion-ballista/issues/1563#issuecomment-4290483723

   something like 
   
   ```rust
   use ballista_executor::executor_process::{
       ExecutorProcessConfig, start_executor_process,
   };
   use datafusion::execution::{memory_pool::FairSpillPool, 
runtime_env::RuntimeEnvBuilder};
   use std::sync::Arc;
   
   #[tokio::main]
   async fn main() -> ballista_core::error::Result<()> {
   
       let memory_pool = Arc::new(FairSpillPool::new(2_000_000));
   
       let runtime_env_producer: ballista_core::RuntimeProducer = Arc::new(move 
|_config| {
           let runtime_env = RuntimeEnvBuilder::new()
               .with_memory_pool(memory_pool.clone())
               .build()?;
   
           Ok(Arc::new(runtime_env))
       });
   
       let config: ExecutorProcessConfig = ExecutorProcessConfig {
           override_runtime_producer: Some(runtime_env_producer),
           ..Default::default()
       };
   
       start_executor_process(Arc::new(config)).await
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to