Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
HansVRP committed Jan 15, 2025
1 parent 789b83c commit 1842808
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions openeo/extra/job_management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,18 +643,6 @@ def download_task():
downloader = Thread(target=download_task, daemon=True)
downloader.start()

def _job_download(self, job, job_dir, row):
"""
Download the job's results and update the job status after the download completes.
"""
try:
# Start downloading the job's results
job.get_results().download_files(target=job_dir)

except Exception as e:
# If the download fails, set the status to 'error'
_log.error(f"Error downloading job {job.job_id}: {e}")

def on_job_error(self, job: BatchJob, row):
"""
Handles jobs that stopped with errors. Can be overridden to provide custom behaviour.
Expand Down

0 comments on commit 1842808

Please sign in to comment.