This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Bug 1308712 - Add Spark job detail view #35
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,50 @@ | ||
{% extends "atmo/base.html" %} | ||
|
||
{% block head_title %}Spark job {{ job.identifier }}{% endblock %} | ||
|
||
{% block content %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mind providing a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
<h1>Spark Job {{ job.identifier }}</h1> | ||
<p class="lead">Summary:</p> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Notebook S3 key:</strong></div> | ||
<div class="col-md-10">{{ job.notebook_s3_key }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Result visibility:</strong></div> | ||
<div class="col-md-10">{{ job.result_visibility }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Size:</strong></div> | ||
<div class="col-md-10">{{ job.size }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Interval in hours:</strong></div> | ||
<div class="col-md-10">{{ job.interval_in_hours }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Timeout:</strong></div> | ||
<div class="col-md-10">{{ job.job_timeout }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Start date:</strong></div> | ||
<div class="col-md-10">{{ job.start_date|date:"SHORT_DATETIME_FORMAT" }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>End date:</strong></div> | ||
<div class="col-md-10">{{ job.end_date|date:"SHORT_DATETIME_FORMAT" }}</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Is enabled:</strong></div> | ||
<div class="col-md-10"> | ||
{% if job.is_enabled %} | ||
<span class="glyphicon glyphicon-ok text-success" aria-hidden="true"></span> | ||
{% else %} | ||
<span class="glyphicon glyphicon-remove text-danger" aria-hidden="true"></span> | ||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-2"><strong>Last run date:</strong></div> | ||
<div class="col-md-10">{{ job.last_run_date|timesince }}</div> | ||
</div> | ||
{% endblock content %} |
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 |
---|---|---|
|
@@ -72,7 +72,7 @@ def spark_job_run(user_email, identifier, notebook_uri, result_is_public, size, | |
'Path': 's3://{}/bootstrap/telemetry.sh'.format( | ||
settings.AWS_CONFIG['SPARK_EMR_BUCKET'] | ||
), | ||
'Args': ['--timeout', job_timeout] | ||
'Args': ['--timeout', str(job_timeout)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
} | ||
}], | ||
Tags=[ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the import needs to be removed, too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍