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

Rerun failed jobs by error message #185

Open
janosh opened this issue Sep 18, 2024 · 0 comments · May be fixed by #186
Open

Rerun failed jobs by error message #185

janosh opened this issue Sep 18, 2024 · 0 comments · May be fixed by #186

Comments

@janosh
Copy link
Collaborator

janosh commented Sep 18, 2024

would be great if jobs could be rerun by regex matching the recorded stacktrace. e.g.

jf job rerun --err-regex | -er "ModuleNotFoundError: No module named 'idna'"

to rerun all jobs with this kind stacktrace

created_on = '2024-09-13 19:23'                                                            │
│      db_id = '20229'                                                                       │
│   end_time = '2024-09-16 12:00'                                                            │
│      error = Traceback (most recent call last):   
...
│              "/lambdafs/janosh/.venv/py312/lib/python3.12/site-packages/emmet/core/settin… │
│              line 10, in <module>                                                          │
│                  import requests                                                           │
│                File                                                                        │
│              "/lambdafs/janosh/.venv/py312/lib/python3.12/site-packages/requests/__init__… │
│              line 151, in <module>                                                         │
│                  from . import packages, utils                                             │
│                File                                                                        │
│              "/lambdafs/janosh/.venv/py312/lib/python3.12/site-packages/requests/packages… │
│              line 9, in <module>                                                           │
│                  locals()[package] = __import__(package)                                   │
│                                      ^^^^^^^^^^^^^^^^^^^                                   │
│              ModuleNotFoundError: No module named 'idna'                                   │
│      index = 1                                                                             │
│   metadata = {}    
@janosh janosh linked a pull request Sep 18, 2024 that will close this issue
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 a pull request may close this issue.

1 participant