forked from restraint-harness/restraint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a quick(maybe and dirty) impletion of RFE: issue 228 and more
see: restraint-harness#288 and support customize the task fetch options in param: _fetch_opts: retry=N timeo=N keepchanges abort_recipe|abort_recipe_when_fetch_fail e.g: If the key task /kernel/install fetch fails, subsequent tasks will not run: <task name="/kernel/install"> <fetch url="http://a.b.c/path/archive.tgz#rpath"/> <params> <param name="_fetch_opts" value="retry=16,timeo=16,abort_recipe"/> <param name="KERNEL_VER" value="kernel-6.7.0-119.el10"/> </params> </task> <task name="/kernel/fs/nfs/test1"> <fetch url="http://a.b.c/path/archive.tgz#rpath1"/> <params> <param name="_fetch_opts" value="retry=8,keepchanges"/> <param name="KERNEL_VER" value="kernel-6.7.0-119.el10"/> </params> </task> Q: why add these options in task params? A: because beaker job xml schema has not accept the new xml tag, so as a workaround I put these fetch options in task->params Signed-off-by: Jianhong Yin <[email protected]>
- Loading branch information
Showing
6 changed files
with
131 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
#create file "/tmp/abort_recipe_$RECIPEID" to notify subsequent tasks in same | ||
#recipe to abort without do anything. | ||
#restraintd program will check whether this file exists before prepare each task | ||
#if exists then quit immediately. | ||
touch /tmp/abort_recipe_${RECIPEID:-$RSTRNT_RECIPEID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters