mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 01:38:12 +08:00
Renames async/enqueue to async_task.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from django_q.tasks import enqueue
|
||||
from django_q.tasks import async_task
|
||||
from django_q.brokers import get_broker
|
||||
from django_q.cluster import Cluster
|
||||
from django_q.compat import range
|
||||
@@ -46,4 +46,4 @@ def test_info():
|
||||
|
||||
|
||||
def do_sync():
|
||||
enqueue('django_q.tests.tasks.countdown', 1, sync=True, save=True)
|
||||
async_task('django_q.tests.tasks.countdown', 1, sync=True, save=True)
|
||||
|
||||
Reference in New Issue
Block a user