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

Scan fails for some upload jobs #396

Closed
seallard opened this issue Feb 19, 2024 · 0 comments · Fixed by #395
Closed

Scan fails for some upload jobs #396

seallard opened this issue Feb 19, 2024 · 0 comments · Fixed by #395
Assignees
Labels

Comments

@seallard
Copy link
Contributor

2024-02-19 14:40:58 hasta.scilifelab.se trailblazer.services.job_service[108610] INFO Updating upload job 672236017
Traceback (most recent call last):
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/bin/trailblazer", line 8, in <module>
   sys.exit(base())
            ^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
   return self.main(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/click/core.py", line 1078, in main
   rv = self.invoke(ctx)
        ^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
   return _process_result(sub_ctx.command.invoke(sub_ctx))
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
   return ctx.invoke(self.callback, **ctx.params)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/click/core.py", line 783, in invoke
   return __callback(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "src/dependency_injector/_cwiring.pyx", line 28, in dependency_injector._cwiring._get_sync_patched._patched
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/trailblazer/cli/core.py", line 105, in scan
   job_service.update_upload_jobs()
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/trailblazer/services/job_service.py", line 33, in update_upload_jobs
   updated_job: SlurmJobInfo = self.slurm_service.get_job_info(job.slurm_id)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/trailblazer/services/slurm/slurm_cli_service/slurm_cli_service.py", line 15, in get_job_info
   return create_job_info_dto(job)
          ^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/trailblazer/clients/slurm_cli_client/utils.py", line 6, in create_job_info_dto
   return SlurmJobInfo(
          ^^^^^^^^^^^^^
 File "/home/proj/production/bin/miniconda3/envs/P_trailblazer/lib/python3.11/site-packages/pydantic/main.py", line 164, in __init__
   __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for SlurmJobInfo
started_at
 Input should be a valid datetime [type=datetime_type, input_value=None, input_type=NoneType]
   For further information visit https://errors.pydantic.dev/2.5/v/datetime_type
@seallard seallard added the Bug label Feb 19, 2024
@seallard seallard self-assigned this Feb 19, 2024
@seallard seallard mentioned this issue Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant