Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!14
Asynchronní joby
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Asynchronní joby
mj/jobs
into
devel
Overview
0
Commits
12
Changes
1
Merged
Martin Mareš
requested to merge
mj/jobs
into
devel
4 years ago
Overview
0
Commits
12
Changes
1
0
0
Merge request reports
Viewing commit
21225a2e
Show latest version
1 file
+
2
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
21225a2e
mo.jobs: fixup
· 21225a2e
Martin Mareš
authored
4 years ago
mo/jobs/__init__.py
+
2
−
2
View file @ 21225a2e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -94,12 +94,12 @@ class TheJob:
@@ -94,12 +94,12 @@ class TheJob:
return
return
job
=
self
.
job
job
=
self
.
job
logger
.
info
(
f
'
Job: Spouštím job #
{
job
.
job_id
}
'
)
logger
.
info
(
f
'
Job: Spouštím job #
{
job
.
job_id
}
(
{
job
.
type
}
)
'
)
job
.
state
=
db
.
JobState
.
running
job
.
state
=
db
.
JobState
.
running
sess
.
commit
()
sess
.
commit
()
try
:
try
:
_handler_table
[
job
.
type
](
job
)
_handler_table
[
job
.
type
](
self
)
logger
.
info
(
f
'
Job: Úspěšně dokončen job #
{
job
.
job_id
}
'
)
logger
.
info
(
f
'
Job: Úspěšně dokončen job #
{
job
.
job_id
}
'
)
job
.
state
=
db
.
JobState
.
done
job
.
state
=
db
.
JobState
.
done
except
Exception
as
e
:
except
Exception
as
e
:
Loading