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
!2249
Support extra_files in RQ tasks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Support extra_files in RQ tasks
rq-task-extra-files
into
master
Overview
3
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Merged
ml bonhomme
requested to merge
rq-task-extra-files
into
master
1 year ago
Overview
3
Commits
4
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
closes
#1695 (closed)
0
0
Merge request reports
Viewing commit
d37cc46f
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d37cc46f
Path settings.PONOS_DATA_DIR
· d37cc46f
ml bonhomme
authored
1 year ago
arkindex/ponos/tasks.py
+
1
−
1
Options
@@ -105,7 +105,7 @@ def download_extra_files(task) -> None:
resp
.
raise_for_status
()
# Write file to a specific data directory
extra_files_dir
=
settings
.
PONOS_DATA_DIR
/
"
extra_files
"
extra_files_dir
=
Path
(
settings
.
PONOS_DATA_DIR
)
/
"
extra_files
"
extra_files_dir
.
mkdir
(
exist_ok
=
True
)
with
open
(
extra_files_dir
/
path_name
,
"
wb
"
)
as
f
:
for
chunk
in
resp
.
iter_content
(
chunk_size
=
8192
):
Loading