使用作业运行仪表板监视正在运行的作业Monitor running jobs with a Job Run dashboard

作业运行仪表板是一个笔记本,显示有关工作区中当前运行的所有作业的信息。The Job Run dashboard is a notebook that displays information about all of the jobs currently running in your workspace.

要配置仪表板,你必须具有将笔记本附加到要监视的工作区中的通用群集的权限。To configure the dashboard, you must have permission to attach a notebook to an all-purpose cluster in the workspace you want to monitor. 如果不存在通用群集,则必须具有创建群集的权限。If an all-purpose cluster does not exist, you must have permission to create one.

配置仪表板后,你可以管理作业权限,并将“可以查看”权限分配给组织中的用户。Once the dashboard is configured, you can manage job permissions and assign Can View permissions to users in your organization. 这些用户可以查看仪表板,但不能修改它。These users can view the dashboard, but cannot modify it.

运业运行仪表板笔记本Job Run dashboard notebook

获取笔记本Get notebook

附加仪表板Attach the dashboard

由于作业运行仪表板是笔记本,因此将笔记本附加到群集不需要任何特殊步骤。Because the Job Run dashboard is a notebook, no special steps are required to attach the notebook to a cluster.

将其附加到通用群集。Attach it to an all-purpose cluster.

将仪表板作为计划作业运行Run the dashboard as a scheduled job

将笔记本附加到工作区中的群集后,将其配置为每分钟运行一次的计划作业。After attaching the notebook to a cluster in your workspace, configure it to run as a scheduled job that runs every minute.

  1. 打开笔记本。Open the notebook.
  2. 单击Click 计划 在笔记本工具栏中。in the notebook toolbar.
  3. 在“计划作业”窗格中,单击“新建” 。Click New in the Schedule job pane.
  4. 在“创建计划”对话框中选择“每”和“分钟” 。Select Every and minute in the Create Schedule dialog box.
  5. 单击“确定”。Click OK.
  6. 在“计划作业”窗格中单击“作业运行仪表板” 。Click Job Run dashboard in the Schedule job pane.
  7. 作业详细信息页上,在“群集”选项旁边单击“编辑” 。Click Edit next to the Cluster option on the job details page.
  8. 选择现有通用群集。Select an existing all-purpose cluster.
  9. 单击“确认” 。Click Confirm.

显示仪表板Display dashboard

  1. 转到计划作业的作业详细信息页。Go to the job details page for the scheduled job.
  2. 检查以确保至少成功运行一次。Check to make sure at least one successful run has occurred.
  3. 单击“最近成功运行(自动刷新)”。Click Latest successful run (refreshes automatically).
  4. 选择“作业运行仪表板”视图。Select the Job Run Dashboard view.

仪表板现在处于演示模式。The dashboard is now in presentation mode. 在每次计划运行完成后,它会自动更新。It updates automatically after each scheduled run completes.

你可以与具有查看权限的任何用户共享仪表板 URL。You can share the dashboard URL with any user who has view permissions.

列出的结果Results listed

作业运行仪表板结果分为两个部分:The Job Run dashboard results are split into two sections:

  • 作业运行 - 显示当前正在运行的所有计划作业。Job Runs - Displays all of the scheduled jobs that are currently running.
  • 运行提交 - 显示通过 API 调用调用的所有正在运行的作业。Run Submits - Displays all of the running jobs that were invoked via an API call.

仪表板显示每个作业的以下组件:The dashboard displays the following components for each job:

  • 作业 ID - 这是作业的唯一 ID 号。Job ID - This is the unique ID number for the job. 可以通过将此 ID 输入作业 URL 查看所有作业数据。You can use this to view all of the job data by entering it into a job URL.
  • 运行页 - 这是给定作业的特定运行的 ID 号。Run Page - This is the ID number of the specific run for a given job. 它被格式化为可单击的超链接,因此你可以从作业运行仪表板直接导航到运行页。It is formatted as a clickable hyperlink, so you can navigate directly to the run page from the Job Run dashboard. 通过导航到作业 URL,然后从已完成的运行列表中单击特定的运行页,可以访问以前的运行页。You can access previous run pages by navigating to the job URL and then clicking the specific run page from the list of completed runs.
  • 运行名称 - 这是与作业相关的笔记本的名称。Run Name - This is the name of the notebook associated with the job.
  • 开始时间 - 这是作业开始运行的时间。Start Time - This is the time the job run began. 时间显示格式为 DD-MM-YYYY HH:MM:SS,采用 24 小时制。Time is displayed in DD-MM-YYYY HH:MM:SS format, using a 24 hour clock. 时间采用 UTC。Time is in UTC.
  • 创建者 - 这是拥有此作业的用户的电子邮件地址。Created By - This is the email address of the user who owns the job.