Skip to content

Refactor Export PDF Generation Task #2620

@susilnem

Description

@susilnem

Description

Currently, the generate_url Celery task handles:

  • Playwright setup (build_storage_state, PDF rendering)
  • PDF generation and saving
  • File naming using title and export type
  • Export status updates and error handling

Goals for Refactor:

  • Centralize filename and title generation inside the task.
  • Remove duplication between serializer and task.
  • Improve readability and maintainability.
  • Consider renaming the task to something more descriptive, e.g., generate_export_pdf.
  • Enhance error handling and logging.

References:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions