-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Access To Lambda Context #78
Comments
Hi, One reason is that the same PHP process can be kept alive to handle multiple SQS jobs (for example), so we cannot set the values in an environment variable. One way would be for you to write a custom SqsHandler class, but then you loose all the features of Laravel Queues :/ Could you explain what information you want to access in the invocation context? Also I wonder if it's possible to store the context somewhere in the Laravel job 🤔 |
@mnapoli I wanted to access the Do you think we can add support to this? |
We could, but we need to figure out how and where's the best place to put this information. Any idea? |
Inside Or we could also push the context object down further to I am very willing to open up a PR for this but just wanted to be sure this is in line with the general direction of Bref. |
Adding that in SqsJob could be a better option indeed, but is there a good place for it that doesn't pollute the job's data? |
serverless.yml
Worker.php
Inside the queues, it seems I don't have access to the lambda context.
$_SERVER['LAMBDA_INVOCATION_CONTEXT']
is missing. Am I doing something wrong?The text was updated successfully, but these errors were encountered: