Skip to content

BUG - processing jobs page only shows 100 results max #1240

@vmartinez-cu

Description

@vmartinez-cu

Description of the issue

The processing jobs page truncates data results to 100 matches maximum. Update limit to 500.
The limit is set in lambda_code/SDSCode/api_lambdas/batch_job_query_api.py

Steps to reproduce the issue

Reprocessing all L2 Glows data resulted in a maximum of 100 processed jobs displaying in the processing jobs page

Expected vs Actual behavior

More jobs should be visible, so an increase in the limit is needed.

Code Snippet (If applicable)

Code
    # Construct query using filters list
    with db.Session() as session:
        query = (
            select(processing_table)
            .where(and_(*filters))
            .order_by(ProcessingJob.id.desc())
            .limit(100)
        )
        result = session.scalars(query).all()
        logger.info(f"Query result: {result}")

Additional notes, affected areas, and suggested fixes

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions