Skip to content

Add new endpoint resubmit to FIA API and tests#651

Open
eva-1729 wants to merge 23 commits into
mainfrom
640_endpoint_resubmit
Open

Add new endpoint resubmit to FIA API and tests#651
eva-1729 wants to merge 23 commits into
mainfrom
640_endpoint_resubmit

Conversation

@eva-1729
Copy link
Copy Markdown
Collaborator

@eva-1729 eva-1729 commented May 8, 2026

Closes #640

Description

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.61%. Comparing base (6128528) to head (d70a48c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #651      +/-   ##
==========================================
+ Coverage   96.53%   96.61%   +0.08%     
==========================================
  Files          49       49              
  Lines        2108     2129      +21     
==========================================
+ Hits         2035     2057      +22     
+ Misses         73       72       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@keiranjprice101 keiranjprice101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Eva.

Couple of comments/questions below

Comment thread fia_api/routers/job_creation.py Outdated
)


@JobCreationRouter.post("/job/resubmit", tags=["job creation"])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a cleaner API would be /job/{id}/resubmit Then we could also drop the ResubmitJobmodel entirely

Comment thread fia_api/core/job_maker.py
Use this to connect to the broker
:return: None
"""
queue_name = queue_name or self.queue_name
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this queue_name used below? It looks like it still will always bind on self.queue_nameno matter what.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're right, simple mistake, I should be just calling queue_name below

@eva-1729 eva-1729 requested a review from keiranjprice101 May 12, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide endpoint for submission of requests that resubmit jobs/reductions to rundetection, via RabbitMQ

2 participants