Skip to content

Commit

Permalink
Merge pull request #166 from datmo/r-example-timeout
Browse files Browse the repository at this point in the history
Add timeouts to snapshot create snippets to prevent R kernel freeze
  • Loading branch information
asampat3090 committed Jun 1, 2018
2 parents 1da3e65 + 581de85 commit ff7b1e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/R/snapshot_create_iris_caret.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ stats<- paste(sep="",
" --stats Kappa:", modFit$results$Kappa[1])

# Create snapshot with configuration and stats
system2("datmo", args=paste("snapshot create", "-m 'Whoah, my first snapshot!'", config, stats))
system2("datmo", args=paste("snapshot create", "-m 'Whoah, my first snapshot!'", config, stats), timeout=15)
2 changes: 1 addition & 1 deletion examples/R/snapshot_create_notebook.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ save.image()
We can create a snapshot with the following command. A snapshot will enable us to log our experiment and reproduce the state of code, environment, metrics, and more in future examples.

```{r snapshotCreate}
system2("datmo", args=paste("snapshot create", "-m 'Whoah, my first snapshot!'", config, stats))
system2("datmo", args=paste("snapshot create", "-m 'Whoah, my first snapshot!'", config, stats), timeout=15)
```

We can visualize the snapshot we just created (and any others associated with this project) with the following command
Expand Down

0 comments on commit ff7b1e2

Please sign in to comment.