Skip to content

Commit

Permalink
Refresh the harvest_job object (#9267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi authored May 5, 2022
1 parent 8c10e69 commit d9e5933
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geonode/services/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def harvest_resource(self, harvest_job_id):
logger.debug("Resource harvested successfully")
workspace = base.get_geoserver_cascading_workspace(create=False)
_cnt = 0
harvest_job.refresh_from_db()
while _cnt < 5 and not result:
try:
layer = None
Expand Down

0 comments on commit d9e5933

Please sign in to comment.