Skip to content

Commit

Permalink
feat: Add scheduled CI for testing (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nativu5 authored Jan 23, 2025
1 parent 07217a2 commit 35f1b03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build, Upload and Test

on:
schedule:
- cron: "0 2 * * *"
push:
branches:
- master
Expand Down
3 changes: 2 additions & 1 deletion src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,9 @@ CraneErr TaskScheduler::TerminateRunningTaskNoLock_(TaskInCtld* task) {
meta.has_been_terminated_on_craned = true;
need_to_be_terminated = true;
}
} else
} else {
need_to_be_terminated = true;
}

if (need_to_be_terminated) {
for (CranedId const& craned_id : task->executing_craned_ids) {
Expand Down

0 comments on commit 35f1b03

Please sign in to comment.