mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 07:28:13 +08:00
Migrate to Github Action CI (#507)
* Some small refactors * Initial test script * Fixes django matrix * Trying to set up Disque * Disque as a docker service * lowercase action name * Remove Travis * Replaces Travis badge with Github actions badge * Show django version in step * Typo
This commit is contained in:
+1
-2
@@ -260,7 +260,7 @@ def fetch_cached(task_id, wait=0, broker=None):
|
||||
r = broker.cache.get(f"{broker.list_key}:{task_id}")
|
||||
if r:
|
||||
task = SignedPackage.loads(r)
|
||||
t = Task(
|
||||
return Task(
|
||||
id=task["id"],
|
||||
name=task["name"],
|
||||
func=task["func"],
|
||||
@@ -272,7 +272,6 @@ def fetch_cached(task_id, wait=0, broker=None):
|
||||
result=task["result"],
|
||||
success=task["success"],
|
||||
)
|
||||
return t
|
||||
if (time() - start) * 1000 >= wait >= 0:
|
||||
break
|
||||
sleep(0.01)
|
||||
|
||||
Reference in New Issue
Block a user