question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

command failure result in queue clearing

See original GitHub issue

Experiencing 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aliseycommented, Jun 25, 2020

@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.

0reactions
steveukxcommented, Jun 25, 2020

I am going to close this issue now - if there further problems, please do open a new issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found