-
Notifications
You must be signed in to change notification settings - Fork 78
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
Long delay in push after the deployment completes before the CLI exits #2012
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
We had logged this a long time ago when the structure of the local source tracking was changed to be a git repo -- Over on #1394 (comment) I reported it was taking 17 minutes but further on in that thread it was reduced down to "2 minutes" which sounds similar to what you're reporting |
Hey @daveespo @SCWells72 👋 I'm almost certain that this is happening because of server updating the SourceMember table. Once the deployment is complete, it will update the table, and then the CLI has to query the updated table to update the local source tracking information. You might already know that, but there's not much we can do for now... there's some config settings to set disable it or set timeouts, but those might not be viable for you https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_env_variables.htm We've been talking about how to enable performance logging to help raise these issues to other teams and improve this experience |
Hi, @WillieRuemmele. Good info to have. I already have IC2 telling the end user that it's in a "deployment complete/waiting on CLI" state, so I don't know that there's anything else I need to do. More than anything I wanted to bring this to your attention because the delay can be unexpectedly long and I didn't know if you were aware of it and/or if it was perhaps a low-hanging-fruit type of thing to address. It sounds like it's probably not, and of course now I know you're in fact aware of it, so I'm good. Thanks again! |
A bit back I enhanced IC2 to start a separate polling thread for the deployment job created by a
force:source:push
initiated by IC2 to provide more granular reporting feedback. That works great, but I've noticed that there can often be a significant delay between completion of the deployment job and when the CLI command itself exits. I've started to add a "Waiting for CLI to exit" message to the progress indicator in this situation, but I figured I'd log it with you all to see if that's expected and, if(/assuming?) not, to ensure it's on your radar. Here's an extract from an IC2 debug log showing the relationship between the deployment job completion and the CLI command completion:Notice that there's over a full minute between when the deployment job is reported as
SUCCEEDED
and when the CLI push command completes.Let me know if you need any more info to help with this.
The text was updated successfully, but these errors were encountered: