Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Shanicky Chen <[email protected]>
  • Loading branch information
shanicky committed Jul 11, 2024
1 parent a22effc commit c05e7f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/meta/src/stream/stream_graph/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ crepe::crepe! {
struct Requirement(Id, DistId);

@output
#[derive(Debug)]
struct Success(Id, Result);
@output
#[derive(Debug)]
Expand Down Expand Up @@ -269,6 +270,9 @@ impl Scheduler {
.map(|(i, m)| (m.clone(), i))
.collect();

println!("all hash mapping {:#?}", all_hash_mappings);
println!("hash mapping id {:#?}", hash_mapping_id);

let mut facts = Vec::new();

// Building fragments and Singletons
Expand Down Expand Up @@ -297,8 +301,13 @@ impl Scheduler {

// Run the algorithm.
let mut crepe = Crepe::new();
for x in &facts {
println!("fact {:?}", x);
}
crepe.extend(facts.into_iter().map(Input));
let (success, failed) = crepe.run();
println!("success {:?}", success);

if !failed.is_empty() {
bail!("Failed to schedule: {:?}", failed);
}
Expand Down

0 comments on commit c05e7f0

Please sign in to comment.