server.web.models.task ====================== .. py:module:: server.web.models.task .. autoapi-nested-parse:: Task Table for the Database. Attributes ---------- .. autoapisummary:: server.web.models.task.logger Classes ------- .. autoapisummary:: server.web.models.task.Task Module Contents --------------- .. py:data:: logger .. py:class:: Task Bases: :py:obj:`jobmon.server.web.models.Base` Task Database object. .. py:method:: to_wire_as_distributor_task() -> tuple Serialize executor task object. .. py:method:: to_wire_as_swarm_task() -> tuple Serialize swarm task. .. py:attribute:: id :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: workflow_id .. py:attribute:: node_id .. py:attribute:: task_args_hash .. py:attribute:: array_id .. py:attribute:: name :type: sqlalchemy.orm.Mapped[str] .. py:attribute:: command :type: sqlalchemy.orm.Mapped[str] .. py:attribute:: task_resources_id .. py:attribute:: num_attempts :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: max_attempts :type: sqlalchemy.orm.Mapped[int] .. py:attribute:: resource_scales .. py:attribute:: fallback_queues .. py:attribute:: status :type: sqlalchemy.orm.Mapped[str] .. py:attribute:: status_date .. py:attribute:: task_instances .. py:attribute:: task_resources .. py:attribute:: array .. py:attribute:: valid_transitions .. py:method:: reset(name: str, command: str, max_attempts: int, reset_if_running: bool) -> None Reset status and number of attempts on a Task. .. py:method:: transition(new_state: str) -> None Transition the Task to a new state. .. py:method:: transition_after_task_instance_error(job_instance_error_state: str) -> None Transition the task to an error state.