code: def forward_dashboard_event(self, dashboard, job_data, event, job_num):
          
          # possible events:
          #   - action.submit
          #   - action.cancel
          #   - status.pending
          #   - status.running
          #   - status.finished
          #   - status.retry
          #   - status.failed
          # forward to dashboard in any event by default
          return dashboard.publish(job_data, event, job_num)
docs: Hook to preprocess and publish dashboard events. By default, every event is passed to the
          dashboard's :py:meth:`law.job.dashboard.BaseJobDashboard.publish` method unchanged.