Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-853

Using mongo-tools as a package

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 3.1.6
    • Fix Version/s: 3.3.14
    • Component/s: All Tools, mongodump
    • Labels:
      None

      Description

      Perhaps it's a fairly marginal use case, but I would like to be able to use mongo-tools (specifically mongodump) as a package in my own app. This is possible as of now, however there is a couple of unwanted behaviours that I'd love to be able to turn off.

      Speaking of mongodump, it 1) spawns progress manager that dumps the progress of the execution to stdout and 2) sets up signal handlers that kill the app if triggered.
      https://github.com/mongodb/mongo-tools/blob/master/mongodump/mongodump.go#L317

      As far as my understanding of the code goes, these behaviours are optional in nature and it wouldn't hurt if you could pass a switch to Dump() that disables them.

      Do you guys think this is viable?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              pavel.numbersandperiods Pavel
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: