Private
Public Access
1
0

Seems to work (golang routine to test)

This commit is contained in:
Sander Roosendaal
2020-07-08 22:04:27 +02:00
parent 30b9fac1d5
commit ea2af4830c
5 changed files with 37 additions and 14 deletions

View File

@@ -22,7 +22,7 @@ from rowsandall_app.settings import (
from pytz import timezone as tz, utc
from rowers.tasks import handle_c2_import_stroke_data, handle_c2_sync
from rowers.tasks import handle_get_garmin_file
import django_rq
queue = django_rq.get_queue('default')
queuelow = django_rq.get_queue('low')
@@ -112,14 +112,16 @@ def garmin_open(user):
return token
def get_garmin_file(r,callbackURL,starttime,fileType):
job = queuehigh.enqueue(
get_garmin_file,
job = myqueue(
queue,
handle_get_garmin_file,
oauth_data['client_id'],
oauth_data['client_secret'],
garmintoken,
garminrefreshtoken,
r.garmintoken,
r.garminrefreshtoken,
r.user.id,
callbackURL,filetype
callbackURL,
fileType,
)
return job.id