Skip to content

"pool_slots" may be None #15025

@suiting-young

Description

@suiting-young

if task_instance.pool_slots > open_slots:

This would trigger error

TypeError: '>' not supported between instances of 'NoneType' and 'int'

as the task_instance is fetched directly (without the patch of refresh_from_db)

task_instances_to_examine: List[TI] = with_row_locks(
query,
of=TI,
session=session,
**skip_locked(session=session),
).all()

Related to #8153.

Metadata

Metadata

Assignees

No one assigned

    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