Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Talend Open Studio Agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Medizinische Informatik - Öffentliche Projekte
UMG MeDIC
MeDIC Technik
AW Agents
Talend Open Studio Agent
Commits
eebdd9c9
Commit
eebdd9c9
authored
3 years ago
by
parciak
Browse files
Options
Downloads
Plain Diff
Merge branch 'parciak-restartfail-hotfix' into 'master'
Hotfix to Job Restarting See merge request
!35
parents
8dc5ed08
5f7f182e
Branches
master
No related tags found
1 merge request
!35
Hotfix to Job Restarting
Pipeline
#201079
failed
3 years ago
Stage: build
Stage: test
Stage: publish
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tos_execute/init.py
+2
-1
2 additions, 1 deletion
tos_execute/init.py
with
2 additions
and
1 deletion
tos_execute/init.py
+
2
−
1
View file @
eebdd9c9
...
...
@@ -158,9 +158,10 @@ def init_job_map(settings: config.BasicSettings) -> None:
def
restart_queued_jobs
():
db
:
Session
=
database
.
SessionLocal
()
job_runs
=
store
.
get_job_runs_by_state
(
intmodels
.
JobState
.
queued
,
db
=
db
)
settings
=
config
.
BasicSettings
()
for
job_run
in
job_runs
:
p
=
multiprocessing
.
Process
(
target
=
queue
.
start_job_process
,
args
=
[
job_run
.
id
],
daemon
=
True
target
=
queue
.
start_job_process
,
args
=
[
job_run
.
id
,
settings
],
daemon
=
True
)
p
.
start
()
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