use task cancel_hook instead of the lifecycle hook.
Merge branch 'jortel-cancel-agent-requests' into jortel-node-sync-cancel
Set repository to action to CANCELLED.
check for cancelled importer sync.
check for http ACCEPTED instead of OK for task cancellation.