Closes #20008: Job logging for bulk operation background jobs #1518

Closed
opened 2026-04-06 02:55:57 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 8/5/2025

Closes: #20008

  • Extend the terminate() method on Job to automatically notify the assigned user (if any) on completion
  • AsyncViewJob no longer records any returned data from the view being executed
  • AsyncViewJob now attaches the job being run to the request object to support logging (is_background_request() has been updated accordingly)
  • Extend BulkImportView, BulkEditView, and BulkDeleteView to record success & error messages in the job log when executed as background jobs
  • Introduce _compile_form_errors() on BulkImportView for consistent form error handling
*Originally created by @jeremystretch on 8/5/2025* ### Closes: #20008 - Extend the `terminate()` method on Job to automatically notify the assigned user (if any) on completion - AsyncViewJob no longer records any returned data from the view being executed - AsyncViewJob now attaches the job being run to the request object to support logging (`is_background_request()` has been updated accordingly) - Extend BulkImportView, BulkEditView, and BulkDeleteView to record success & error messages in the job log when executed as background jobs - Introduce `_compile_form_errors()` on BulkImportView for consistent form error handling
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1518