Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-42528: Fix reporting request status #65

Merged
merged 2 commits into from Jan 19, 2024
Merged

Conversation

wguanicedew
Copy link
Contributor

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link
Contributor

@MichelleGower MichelleGower left a comment

Choose a reason for hiding this comment

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

Some questions. Can be merged after following up on the questions.


wf_succeed = False
workflow_status = head["status"]["attributes"]["_name_"]
if workflow_status in ["Finished", "SubFinished"]:
Copy link
Contributor

Choose a reason for hiding this comment

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

What does subfinished mean in particular to understand why it means succeeded?

Copy link
Contributor

Choose a reason for hiding this comment

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

Does this give the correct status for when the final job hasn't shown up yet in PanDA tasks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. It's the workflow status in iDDS. In the iDDS result, there are two parts about the status: (1) 'status': the workflow/request status, it includes the last task even it's not created. (2) 'transform_status': It's the task status, per task.

In WmsStates, there is no item to distinguish 'Subfinished'. That's why I mapped it to Succeeded.

python/lsst/ctrl/bps/panda/panda_service.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (0c4789d) 36.67% compared to head (c1c7d3c) 36.21%.

Files Patch % Lines
python/lsst/ctrl/bps/panda/panda_service.py 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #65      +/-   ##
==========================================
- Coverage   36.67%   36.21%   -0.47%     
==========================================
  Files           9        9              
  Lines         548      555       +7     
  Branches       95       99       +4     
==========================================
  Hits          201      201              
- Misses        338      345       +7     
  Partials        9        9              

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

Copy link
Contributor Author

@wguanicedew wguanicedew left a comment

Choose a reason for hiding this comment

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

update to map idds cancelled to rubin deleted, and suspended to held.

@timj
Copy link
Member

timj commented Jan 18, 2024

The doc build failure is caused by the documenteer version. Please change the github action to pin the documenteer version to 0.8.2.

@timj timj changed the title fix reporting request status DM-42528: Fix reporting request status Jan 18, 2024
@wguanicedew
Copy link
Contributor Author

The doc build failure is caused by the documenteer version. Please change the github action to pin the documenteer version to 0.8.2.

After updating documenteer version to 0.8.2, the build doc still failed. Do you have any idea how to fix it?

@timj
Copy link
Member

timj commented Jan 18, 2024

You need to rebase don't you? It's fixed on main via #66 but not on this branch which is still installing a different documenteer version.

@wguanicedew
Copy link
Contributor Author

The build docs work ok. The local test also works ok. I will merge it.

@wguanicedew wguanicedew merged commit fa9b1de into main Jan 19, 2024
12 of 14 checks passed
@wguanicedew wguanicedew deleted the tickets/DM-42528 branch January 19, 2024 09:23
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.

None yet

3 participants