-
I'm currently deploying my Laravel application using Bref. All the resources are deployed successfully, including my SQS queue, but when I dispatch a job, I encounter a timeout error. Here’s my setup and configuration: Serverless Configurationservice: epayment
provider:
name: aws
region: us-east-1
environment:
APP_ENV: local
APP_DEBUG: true
APP_KEY: ***
QUEUE_CONNECTION: sqs
SQS_QUEUE: ${construct:jobs.queueUrl}
package:
patterns:
- '!node_modules/**'
- '!public/storage'
- '!resources/assets/**'
- '!storage/**'
- '!tests/**'
functions:
web:
handler: public/index.php
runtime: php-83-fpm
timeout: 28
events:
- httpApi: '*'
vpc:
securityGroupIds:
- sg-xxxxxxx
subnetIds:
- subnet-xxxxxxx
- subnet-xxxxxxx
artisan:
handler: artisan
runtime: php-83-console
timeout: 720
vpc:
securityGroupIds:
- sg-xxxxxxx
subnetIds:
- subnet-xxxxxxx
- subnet-xxxxxxx
constructs:
jobs:
type: queue
worker:
handler: Bref\LaravelBridge\Queue\QueueHandler
runtime: php-83
timeout: 60
plugins:
- ./vendor/bref/bref
- serverless-lift Route for TestingRoute::get('/', function() {
dispatch(function() {
info('This is in the queue');
});
return view('welcome');
}); Environment Details
Problem: Any insights or guidance would be greatly appreciated! 😊 |
Beta Was this translation helpful? Give feedback.
Answered by
mnapoli
Oct 25, 2024
Replies: 1 comment 1 reply
-
Hi, does this help: https://bref.sh/docs/environment/database#accessing-the-internet ? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lepresk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, does this help: https://bref.sh/docs/environment/database#accessing-the-internet ?