command failure result in queue clearing
See original GitHub issueExperiencing an issue where a git command failure clears up the queued commands after it - there are certain, exploratory commands where a failure is OK. This can be easily reproduced by sending in two requests, the first of which fails and you’d notice the second one never to resolve
const Git = require('simple-git/promise');
const git = Git(__dirname);
const p = git.raw(['remote', 'get-url', 'notThere']).catch(()=>{});
const p1 = git.log();
p1.then(() => {console.log('it will never get here');})
The root cause seems to be this line - before sending a PR I want to understand if there were any reasons for clearing up the queue or was just a left over from .exception? https://github.com/steveukx/git-js/blob/master/src/git.js#L1472
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
The command “delete export queue <queue_name>” results ...
The command “delete export queue <queue_name>” results in error “delete queue failed: que_DATA: Data is available” (4298340).
Read more >Clearing the messages from a queue - IBM
Select the method to use to clear the messages from the queue: If you use the CLEAR command, all of the messages are...
Read more >How to Clear the Printer Queue in Windows 10/11 - Auslogics
Clear the print queue using the command prompt. Set up a batch file to clear the print queue. Restart the printer and reinstall...
Read more >Whats the difference between using the clear command and ...
The CLEAR command issues a single command which clears the queue, while Clearing using the MQGET command reads the queue until it's empty....
Read more >Dell EMC Poweredge: iDRAC Updates fail with error RED014
Job Queue Error ... RED014: Job for this device is already present. ... Deleting or reuploading the firmware may result in the same...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@steveukx I’ve updated and it’s working great. Thank you so much! Also tested various values for
maxConcurrentProcesses
, which is a really nice addition, also works as expected.I am going to close this issue now - if there further problems, please do open a new issue.