File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,32 @@ Add a new queue connection to `config/queue.php`
46
46
],
47
47
```
48
48
49
- Finally, change the ` QUEUE_CONNECTION ` to the newly defined connection .
49
+ Finally, set the correct environment variables .
50
50
51
51
``` dotenv
52
52
QUEUE_CONNECTION=cloudtasks
53
53
```
54
54
55
- Now that the package is installed, the final step is to set the correct environment variables.
55
+ If you're using Cloud Run:
56
+
57
+ ``` dotenv
58
+ CLOUD_TASKS_PROJECT=my-project
59
+ CLOUD_TASKS_LOCATION=europe-west6
60
+ CLOUD_TASKS_QUEUE=barbequeue
61
+ CLOUD_TASKS_SERVICE_EMAIL=my-service-account@appspot.gserviceaccount.com
62
+ # Optionally (when using a separate task handler):
63
+ CLOUD_TASKS_SERVICE_HANDLER=
64
+ ```
65
+
66
+ If you're using App Engine:
67
+
68
+ ``` dotenv
69
+ CLOUD_TASKS_PROJECT=my-project
70
+ CLOUD_TASKS_LOCATION=europe-west6
71
+ CLOUD_TASKS_QUEUE=barbequeue
72
+ APP_ENGINE_TASK=true
73
+ APP_ENGINE_SERVICE=my-service
74
+ ```
56
75
57
76
Please check the table below on what the values mean and what their value should be.
58
77
You can’t perform that action at this time.
0 commit comments