Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2227
Execute docker tasks in RQ
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Execute docker tasks in RQ
dummy-tasks
into
community
Overview
33
Commits
25
Pipelines
0
Changes
1
Merged
Valentin Rigal
requested to merge
dummy-tasks
into
community
1 year ago
Overview
20
Commits
25
Pipelines
0
Changes
1
Expand
TODO:
Handle task failure
+ recursive update (children tasks)
Ponos auth (via env)
Publish logs as artifact
Read artifact of the parent task
Publish artifact
Fix existing tests
Fix exception mentioned in
!2227 (comment 224950)
Add tests for tasks scheduler
Follow-ups:
Support downloading and extracting ZST extra files (
download_extra_files
method)
#1695 (closed)
Retry single task
#1696 (closed)
Add tests for RQ agent (docker mocks)
#1697 (closed)
Edited
1 year ago
by
Valentin Rigal
0
0
Merge request reports
Viewing commit
b0a7bb4c
Show latest version
1 file
+
0
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b0a7bb4c
Remove polling waiting for the container to be available
· b0a7bb4c
Valentin Rigal
authored
1 year ago
arkindex/ponos/tasks.py
+
0
−
2
Options
@@ -115,9 +115,7 @@ def run_docker_task(client, task, temp_dir):
if
task
.
command
is
not
None
:
kwargs
[
"
command
"
]
=
task
.
command
container
=
client
.
containers
.
run
(
task
.
image
,
**
kwargs
)
# Wait for
while
container
.
status
==
"
created
"
:
sleep
(
TASK_DOCKER_POLLING
)
container
.
reload
()
if
container
.
status
!=
"
running
"
:
raise
Exception
(
"
Container was not updated to state running
"
)
Loading