Skip to content

Commit

Permalink
Update jobs.py
Browse files Browse the repository at this point in the history
missed a callback_xloader_hook call, need to update result_url here too
  • Loading branch information
kowh-ai committed Jan 16, 2025
1 parent 93c9e5f commit deab5cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckanext/xloader/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ def direct_load():
set_datastore_active(data, resource, logger)
if 'result_url' in input:
job_dict['status'] = 'running_but_viewable'
callback_xloader_hook(result_url=input['result_url'],
callback_url = config.get('ckanext.xloader.site_url') or config.get('ckan.site_url')
callback_url = urljoin(
callback_url.rstrip('/'), '/api/3/action/xloader_hook')
result_url = callback_url
callback_xloader_hook(result_url=result_url,
api_key=api_key,
job_dict=job_dict)
logger.info('Data now available to users: %s', resource_ckan_url)
Expand Down

0 comments on commit deab5cb

Please sign in to comment.