create_repo api fails with celery enabled
Calling create_repo (via rhodecode-api, with repo_name:example and repo_type:hg) returns a false positive 'Created new repository' result frontend, and mysql query error backend.
The async task
rhodecode/lib/celerylib/tasks.py:create_repo() receives a variable
cur_user containing the whole user as a dict, not a class object (which is supported by instance resolver) or just plain username as the ORM expects.
The patch included is just a nasty hack and doesn't fix what is probably a wider celery serialisation problem.