fix: rename overview.md files to avoid conflicts and add collection name
This commit is contained in:
@@ -13,8 +13,6 @@ pub struct Runner {
|
||||
pub address: IpAddr,
|
||||
/// Needs to be set by the runner, usually `runner<runnerid`
|
||||
pub topic: String,
|
||||
/// The executor this runner can handle (e.g., "python", "rhai"); used for routing
|
||||
pub executor: String,
|
||||
/// If this is true, the runner also listens on a local redis queue
|
||||
pub local: bool,
|
||||
/// Optional secret used for authenticated supervisor calls (if required)
|
||||
|
||||
@@ -135,8 +135,6 @@ pub struct RunnerCreate {
|
||||
pub pubkey: String,
|
||||
pub address: IpAddr,
|
||||
pub topic: String,
|
||||
/// The executor this runner can handle (e.g., "python", "rhai")
|
||||
pub executor: String,
|
||||
pub local: bool,
|
||||
/// Optional secret used for authenticated supervisor calls (if required)
|
||||
pub secret: Option<String>,
|
||||
@@ -150,7 +148,6 @@ impl RunnerCreate {
|
||||
pubkey,
|
||||
address,
|
||||
topic,
|
||||
executor,
|
||||
local,
|
||||
secret,
|
||||
} = self;
|
||||
@@ -160,7 +157,6 @@ impl RunnerCreate {
|
||||
pubkey,
|
||||
address,
|
||||
topic,
|
||||
executor,
|
||||
local,
|
||||
secret,
|
||||
created_at: ts,
|
||||
@@ -211,7 +207,6 @@ pub struct JobCreate {
|
||||
pub context_id: u32,
|
||||
pub script: String,
|
||||
pub runner: Option<String>,
|
||||
pub executor: Option<String>,
|
||||
pub timeout: u32,
|
||||
pub retries: u8,
|
||||
pub env_vars: HashMap<String, String>,
|
||||
@@ -231,7 +226,6 @@ impl JobCreate {
|
||||
context_id: self.context_id.to_string(),
|
||||
payload: self.script,
|
||||
runner: self.runner.unwrap_or_else(|| "default-runner".to_string()),
|
||||
executor: self.executor.unwrap_or_else(|| "python".to_string()),
|
||||
timeout: self.timeout as u64,
|
||||
env_vars: self.env_vars,
|
||||
created_at: Utc::now(),
|
||||
|
||||
@@ -425,7 +425,7 @@ impl AppService {
|
||||
context_id,
|
||||
flow_id,
|
||||
message: "job.run".to_string(),
|
||||
message_type: job.executor.clone(),
|
||||
message_type: job.runner.clone(),
|
||||
message_format_type: MessageFormatType::Text,
|
||||
timeout: job.timeout as u32,
|
||||
timeout_ack: 10,
|
||||
@@ -503,7 +503,7 @@ impl AppService {
|
||||
context_id,
|
||||
flow_id, // Add flow_id for DAG tracking
|
||||
message: "job.run".to_string(),
|
||||
message_type: job.executor.clone(),
|
||||
message_type: job.runner.clone(),
|
||||
message_format_type: MessageFormatType::Text,
|
||||
timeout: job.timeout as u32,
|
||||
timeout_ack: 10,
|
||||
|
||||
Reference in New Issue
Block a user