Skip to content

Commit

Permalink
chore(workflow): increase poll intervals (#1990)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Feb 3, 2025
1 parent bcebac3 commit ea5a3ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/common/chirp-workflow/core/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use uuid::Uuid;

use crate::{ctx::WorkflowCtx, db::DatabaseHandle, metrics, registry::RegistryHandle, utils};

pub const TICK_INTERVAL: Duration = Duration::from_secs(10);
pub const TICK_INTERVAL: Duration = Duration::from_secs(120);

/// Used to spawn a new thread that indefinitely polls the database for new workflows. Only pulls workflows
/// that are registered in its registry. After pulling, the workflows are ran and their state is written to
Expand Down
4 changes: 2 additions & 2 deletions packages/common/hub-embed/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.output()?;
println!("stdout:\n{}", String::from_utf8_lossy(&output.stdout));
println!("stderr:\n{}", String::from_utf8_lossy(&output.stderr));
assert!(output.status.success(), "yarn install failed",);
assert!(output.status.success(), "yarn install failed");

println!("Running yarn build");
let output = Command::new("yarn")
Expand All @@ -35,7 +35,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.output()?;
println!("stdout:\n{}", String::from_utf8_lossy(&output.stdout));
println!("stderr:\n{}", String::from_utf8_lossy(&output.stderr));
assert!(output.status.success(), "hub build failed",);
assert!(output.status.success(), "hub build failed");

// Copy dist directory to out_dir
let dist_path = hub_path.join("dist");
Expand Down

0 comments on commit ea5a3ba

Please sign in to comment.