-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
…vel/interrupt-example
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
…vel/interrupt-example # Conflicts: # examples/mapdl_tyre_performance/interrupt_task.py
@PipKat the Documentation build fails due to "404 Not Found [IP: 52.252.163.49 80]". Are you familiar with that issue? |
…vel/interrupt-example
for more information, see https://pre-commit.ci
@@ -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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.error(f"Interrupt command not found") | |
log.error(f"Interrupt command is not found.") |
Pull Request Template
Description
Add script to run interrupt command
Checklist
Please complete the following checklist before submitting your pull request: