Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace print_job_status #37

Merged
merged 5 commits into from
Jan 22, 2019
Merged

Conversation

pmarchand1
Copy link
Collaborator

Addresses #18 (and to a lesser extent #9)

Replaces print_job_status (now deprecated) with get_job_status which returns a list of three elements:

  • completed (logical): whether the job completed/stopped,
  • queue (data frame): the table from squeue (0 rows if completed),
  • log (character vector): the contents of the output file for each node.

Also added a custom print function so that when output directly to console, it shows either the queue table or a message saying all nodes completed, and then outputs the last portion (up to 60 chars.) of the log from each node.

@itcarroll itcarroll merged commit 1f02428 into earthlab:master Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants