move callback task into tasks.py