Skip to content

Conversation

@christyjacob4
Copy link
Contributor

@christyjacob4 christyjacob4 commented Jan 23, 2022

What does this PR do?

In response to #2641
I've added a new worker called builds and started migrating the API calls from the functions controller to the builds worker.

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

#2641
#2673

Have you read the Contributing Guidelines on issues?

(Write your answer here.)


protected function triggerBuildStage(string $projectId, string $buildId)
{
// TODO: What is a reasonable time to wait for a build to complete?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should be a reasonable timeout for this ?

We're in the builds worker here. Does it matter if this request takes 900 seconds to complete? The rest of the builds will be queued in the meantime

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It really varies with builds from rust taking up to 20 minutes on slow hardware. Could we make it a environment variable?

@christyjacob4 christyjacob4 mentioned this pull request Jan 24, 2022
@christyjacob4 christyjacob4 merged commit 951a3a4 into feat-functions-refactor Jan 28, 2022
$function = $dbForProject->getDocument('functions', $functionId);

// Request executor to delete deployment containers
$ch = \curl_init();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea, we have a CURL client in the e2e tests - maybe we can abastract it for this. We are doing alot of duplicate curl stuff all over the place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we need to since there are a couple of places where we're making these calls. We should probably move the Client class to a different namespace for this.

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.

5 participants