Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
job_controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
videoag
job_controller
Commits
a655872c
Verified
Commit
a655872c
authored
8 months ago
by
Dorian Koch
Browse files
Options
Downloads
Patches
Plain Diff
Deleted -> Canceled
parent
25488dda
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/job_states.drawio.png
+0
-0
0 additions, 0 deletions
doc/job_states.drawio.png
src/actions/spawn_job.py
+1
-1
1 addition, 1 deletion
src/actions/spawn_job.py
src/job_database_api.py
+1
-1
1 addition, 1 deletion
src/job_database_api.py
with
2 additions
and
2 deletions
doc/job_states.drawio.png
+
0
−
0
View replaced file @
25488dda
View file @
a655872c
62.4 KiB
|
W:
|
H:
62.7 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
src/actions/spawn_job.py
+
1
−
1
View file @
a655872c
...
...
@@ -60,7 +60,7 @@ class WatchJob(GeneratorRecurringEvent):
old_id
=
self
.
job
.
refresh_data
(
cstate
)
if
self
.
job
.
jobData
is
None
:
raise
Exception
(
f
"
Could not find job in db with id=
{
old_id
}
"
)
if
self
.
job
.
job_state
==
JobState
.
DELET
ED
or
self
.
job
.
job_state
==
JobState
.
FINISHED_AND_PROCESSED
or
self
.
job
.
job_state
==
JobState
.
FAILED_AND_PROCESSED
:
if
self
.
job
.
job_state
==
JobState
.
CANCEL
ED
or
self
.
job
.
job_state
==
JobState
.
FINISHED_AND_PROCESSED
or
self
.
job
.
job_state
==
JobState
.
FAILED_AND_PROCESSED
:
print
(
f
"
Job already processed in db, state:
{
self
.
job
.
job_state
}
, not processing again
"
)
return
expected_state
=
JobState
.
FINISHED
if
job_info
.
status
.
succeeded
is
not
None
else
JobState
.
FAILED
...
...
This diff is collapsed.
Click to expand it.
src/job_database_api.py
+
1
−
1
View file @
a655872c
...
...
@@ -13,7 +13,7 @@ class JobState(Enum):
FINISHED_AND_PROCESSED
=
"
finished_and_processed
"
FAILED
=
"
failed
"
FAILED_AND_PROCESSED
=
"
failed_and_processed
"
DELETED
=
"
delet
ed
"
CANCELED
=
"
cancel
ed
"
class
JobData
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment