You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-48Lines changed: 1 addition & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,33 +67,6 @@ The retry call supports the `delay` and `execute_inline` arguments in order to d
67
67
68
68
**NOTE:**`retry()` throws a `MaxRetriesReachedException` exception if the maximum number of retries is reached.
69
69
70
-
#### Executing Tasks
71
-
72
-
The Elastic Beanstalk Worker Tier sends all tasks to a API endpoint. django-eb-sqs has already such an endpoint which can be used by specifying the url mapping in your `urls.py` file.
In that case the relative endpoint url would be: `worker/process`
82
-
83
-
Set this url in the Elastic Beanstalk Worker settings prior to deployment.
84
-
85
-
During development you can use the included Django command to execute a small script which retrieves messages from SQS and posts them to this endpoint.
Another way of executing tasks is to use the Django command `process_queue`.
@@ -113,27 +86,7 @@ python manage.py process_queue --queues queue1,queue2 # process queue1 and queue
113
86
python manage.py process_queue --queues queue1,prefix:pr1-,queue2 # process queue1, queue2 and any queue whose name starts with 'pr1-'
114
87
```
115
88
116
-
Use the signals `MESSAGES_RECEIVED`, `MESSAGES_PROCESSED`, `MESSAGES_DELETED` of the `WorkerService` to get informed about the current SQS batch being processed by the management command.
117
-
118
-
#### Group Tasks
119
-
Multiple tasks can be grouped by specifying the `group_id` argument when calling `delay` on a task.
120
-
If all tasks of a specific group are executed then the group callback task specified by `EB_SQS_GROUP_CALLBACK_TASK` is executed.
121
-
122
-
Example calls:
123
-
```python
124
-
echo.delay(message='Hello World!', group_id='1')
125
-
echo.delay(message='Hallo Welt!', group_id='1')
126
-
echo.delay(message='Hola mundo!', group_id='1')
127
-
```
128
-
129
-
Example callback which is executed when all three tasks are finished:
130
-
```python
131
-
from eb_sqs.decorators import task
132
-
133
-
@task(queue_name='test', max_retries=5)
134
-
defgroup_finished(group_id):
135
-
pass
136
-
```
89
+
Use the signals `MESSAGES_RECEIVED`, `MESSAGES_PROCESSED`, `MESSAGES_DELETED` of
0 commit comments