sec_interp.gui.tasks.geology_task module

Task for async geology generation.

class sec_interp.gui.tasks.geology_task.GeologyGenerationTask(*args: Any, **kwargs: Any)

Bases: QgsTask

Background task for generating geological profiles.

This task executes the geometric intersection logic in a separate thread, using only detached data (DTOs) to ensure thread safety.

__init__(description: str, task_input: GeologyTaskInput, service: GeologyService, params: Any) None

Initialize the task.

Parameters:
  • description – Description of the task.

  • task_input – The detached data input DTO.

  • service – The GeologyService instance (stateless logic).

  • params – Original params for context (backward compatibility).

error_occurred

alias of str

finished(result: bool) None

Handle task completion on Main Thread.

finished_with_results

alias of object

progress_changed

alias of float

run() bool

Execute the task in background thread.

setProgress(progress: float) None

Override to emit signal.