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

Add script to run interrupt command #359

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

davel94
Copy link
Collaborator

@davel94 davel94 commented Mar 14, 2024

Pull Request Template

Description

Add script to run interrupt command

Checklist

Please complete the following checklist before submitting your pull request:

  • I have tested these changes locally and verified that they work as intended.
  • I have updated any documentation as needed to reflect these changes (if appropriate)
  • I have verified that these changes to the best of my knowledge do not introduce any security vulnerabilities.
  • Unit tests have been added (if appropriate)
  • Test-cases have been added (if appropriate)
  • Testing instructions have been added (if appropriate)

@wiz-inc-572fc38784
Copy link

wiz-inc-572fc38784 bot commented Mar 14, 2024

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Vulnerabilities 0C 0H 0M 0L 0I
Sensitive Data 0C 0H 0M 0L 0I
Total 0C 0H 0M 0L 0I
Secrets 0🔑

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.91%. Comparing base (dde3ff6) to head (e36a218).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #359      +/-   ##
==========================================
+ Coverage   93.71%   93.91%   +0.20%     
==========================================
  Files          62       66       +4     
  Lines        2402     2498      +96     
==========================================
+ Hits         2251     2346      +95     
- Misses        151      152       +1     

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

davel94 added 2 commits March 15, 2024 12:04
…vel/interrupt-example

# Conflicts:
#	examples/mapdl_tyre_performance/interrupt_task.py
@davel94
Copy link
Collaborator Author

davel94 commented Mar 19, 2024

@PipKat the Documentation build fails due to "404 Not Found [IP: 52.252.163.49 80]". Are you familiar with that issue?

@@ -64,19 +64,28 @@ def interrupt_running_task(client, project_id) -> Project:
resp = client.session.get(command_defs_url)
command_defs = resp.json()["task_command_definitions"]
if not command_defs:
log.info(f"No command definitions found")
log.error(f"No command definitions found")
Copy link
Member

@PipKat PipKat May 21, 2024

Choose a reason for hiding this comment

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

Suggested change
log.error(f"No command definitions found")
log.error(f"No command definitions are found.")

Messages must be complete, with a subject AND a verb AND concluding punctuation.


log.info(f"Command definition id: {command_defs[0]['id']}")
if not cmd_def:
log.error(f"Interrupt command not found")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
log.error(f"Interrupt command not found")
log.error(f"Interrupt command is not found.")

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.

2 participants