update api, fix tests and examples
This commit is contained in:
		@@ -54,7 +54,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
 | 
			
		||||
        .context_id("example_context")
 | 
			
		||||
        .payload("print('Hello from Hero Supervisor!');")
 | 
			
		||||
        .job_type(JobType::OSIS)
 | 
			
		||||
        .runner_name("my_actor")
 | 
			
		||||
        .runner("my_actor")
 | 
			
		||||
        .timeout(Duration::from_secs(60))
 | 
			
		||||
        .build()?;
 | 
			
		||||
    
 | 
			
		||||
@@ -112,7 +112,7 @@ let job = JobBuilder::new()
 | 
			
		||||
    .context_id("context_id")
 | 
			
		||||
    .payload("script_content")
 | 
			
		||||
    .job_type(JobType::OSIS)
 | 
			
		||||
    .runner_name("target_actor")
 | 
			
		||||
    .runner("target_actor")
 | 
			
		||||
    .timeout(Duration::from_secs(300))
 | 
			
		||||
    .env_var("KEY", "value")
 | 
			
		||||
    .build()?;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user