-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Problem
XLoader jobs complete successfully but task status never updates because the worker process runs as anonymous user. The xloader_hook function fails authorization check when trying to update task status, leaving jobs stuck in "pending" state.
Current Behavior
Job executes successfully in worker
xloader_hook called to update status
check_access('xloader_submit', context, metadata)
fails - no authenticated user
Task status never updates to "complete"
Root Cause
In action.py line ~139:
p.toolkit.check_access('xloader_submit', context, metadata)
Worker context lacks user authentication, causing authorization failure.
Workaround
Adding context['ignore_auth'] = True
before check_access resolves the issue.
Has anyone encountered this issue? Any suggestions for running the jobs worker with proper authentication context, or should xloader_hook automatically ignore auth since it's an internal callback?