Skip to content

Instantly share code, notes, and snippets.

@smondet
Last active August 10, 2017 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smondet/731e8cc0ee61e09ff02d3723f5e388e8 to your computer and use it in GitHub Desktop.
Save smondet/731e8cc0ee61e09ff02d3723f5e388e8 to your computer and use it in GitHub Desktop.
Deploy Debug for Wobi-seco-local
#use "/epidisco-shared/biokepi_machine.ml";;
let workflow =
let open Biokepi in
let open KEDSL in
let program =
let open Program in
let cmd c =
let shorten s =
match String.sub s ~index:0 ~length:50 with
| None -> s | Some s -> s ^ "…" in
shf "echo \"## Secotrec Test of Biokepi machine: %s\""
(Filename.quote (shorten c))
&& shf "%s || { echo 'Command failed' ; echo failure >> /tmp/failures ; }" c
in
chain [
cmd "sleep 3600";
]
&& sh "if [ -f /tmp/failures ] ; then exit 1 ; else exit 0 ; fi"
in
let name = "** DEBUG ME in 60 mins **" in
let make = Machine.run_program ~name biokepi_machine program in
(* let host = Machine.(as_host biokepi_machine) in *)
workflow_node ~name without_product ~make
let () = Ketrew.Client.submit_workflow workflow
@smondet
Copy link
Author

smondet commented Aug 10, 2017

debugmenode

@smondet
Copy link
Author

smondet commented Aug 10, 2017

debugmenodetext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment