Skip to content
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

fix: worker-runner timout option #1515

Merged
merged 1 commit into from
Jul 27, 2022
Merged

fix: worker-runner timout option #1515

merged 1 commit into from
Jul 27, 2022

Conversation

moroine
Copy link
Contributor

@moroine moroine commented Jul 25, 2022

Description

In worker-runner timeout value was NaN because the timeout is passed via workerData not message.

https://github.com/dherault/serverless-offline/blob/master/src/lambda/handler-runner/worker-thread-runner/WorkerThreadRunner.js#L16-L25

Motivation and Context

Using context.getRemainingTimeInMillis() always returns 0

How Has This Been Tested?

Tested locally on a project

Screenshots (if appropriate):

@dnalborczyk
Copy link
Collaborator

thank you @moroine !

@dnalborczyk dnalborczyk merged commit 3437822 into dherault:master Jul 27, 2022
@moroine moroine deleted the bugfix/worker-timout branch July 28, 2022 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants