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

Add --webhook flag to sfdx force:source:deploy when scheduling asynchronous deployment jobs #2068

Closed
AllanOricil opened this issue Apr 15, 2023 · 6 comments
Labels
feature Issue or pull request for a new feature

Comments

@AllanOricil
Copy link

AllanOricil commented Apr 15, 2023

Is your feature request related to a problem? Please describe.

Currently CI/CD pipelines spend unecessary computing time and memory while pulling the status of deployment job. Since the build and test process happens inside salesforce, there is no need to keep a whole Node process alive waiting for this job to finish. These resources could be released so that they can be used by other important jobs.

example: 14min doing nothing but consuming resources in the host machine.
image

What are you trying to do
After scheduling a deployment job inside a salesforce instance, I want to release cpu and memory, and restart the workflow only when the job has finished. I don't want to keep a process alive pulling the job status.

Describe the solution you'd like
This could be achieved if there was a webhook service sending events to clients on every deployment job stage. Something similar to what github does

image

With this service in place, you can then add a new flag called --webhook which would tell salesforce where to send these events to.
sfdx force:source:deploy ... -w 0 --webhook $webhook

This feature could also enable serverless CICD pipelines for Salesforce.

AWS Step Functions are free when paused: https://stackoverflow.com/questions/58110826/aws-step-function-costing
Example of Step Functions that are paused while waiting for a response for a 3rd party service: https://catalog.workshops.aws/serverless-service-coordination/en-US/add-application-review/pausing-execution

Describe alternatives you've considered
There is no alternative.

Additional context
NA

@AllanOricil AllanOricil added the feature Issue or pull request for a new feature label Apr 15, 2023
@github-actions
Copy link

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@git2gus
Copy link

git2gus bot commented Apr 15, 2023

This issue has been linked to a new work item: W-13040779

@AllanOricil AllanOricil changed the title What if salesforce dispatches events during builds? What if salesforce dispatches events during deployment jobs? Like github actions does Apr 15, 2023
@AllanOricil AllanOricil changed the title What if salesforce dispatches events during deployment jobs? Like github actions does What if salesforce dispatched events during deployment jobs? Like github actions does Apr 15, 2023
@AllanOricil AllanOricil changed the title What if salesforce dispatched events during deployment jobs? Like github actions does Add --webhook flag to sfdx force:source:deploy when using -w 0 Apr 23, 2023
@AllanOricil AllanOricil changed the title Add --webhook flag to sfdx force:source:deploy when using -w 0 Add --webhook flag to sfdx force:source:deploy when scheduling asynchronous deployment jobs Apr 23, 2023
@AllanOricil
Copy link
Author

This could also be added to the service and command that creates communities
#445

@jonathanwiesel
Copy link

Any news on this front?

@jonathanwiesel
Copy link

@AllanOricil according to the history of this issue it seems this was completed some time ago but no information regarding the features seems to exist, do you have some info to share to determine what is the future of this feature?

@AllanOricil
Copy link
Author

AllanOricil commented Dec 20, 2024

@jonathanwiesel I have no idea. I think you have to ask those guys that maintain the repo. But I no longer think this is useful for CICD pipelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue or pull request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants