Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Blog
    • Community
    • Testimonials
    • Whitepapers
    • Reports
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Careers
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • Download
  • My 3T
search

Studio 3T® Knowledge Base

  • Documentation
  • Tutorials
  • Workshops
Take the fastest route to learning MongoDB. Cover the basics in two hours with MongoDB 101, no registration required.
Start the free course

Tasks for MongoDB

Posted on: 14/02/2020 (last updated: 30/09/2022) by Ricardo Pires

Automate MongoDB tasks

Tasks help you automate repetitive MongoDB jobs by allowing you to configure, save, and schedule tasks and run them as needed.

After saving your frequently-run jobs, you can run them on-demand using Tasks, or run them automatically by scheduling them. 

What you can automate or schedule with Tasks will depend on your Studio 3T edition.

  1. Import Wizard (Basic, Pro and Ultimate)
  2. Export Wizard (Basic, Pro and Ultimate)
  3. Data Compare & Sync (Pro and Ultimate only)
  4. Reschema (Pro and Ultimate only)
  5. Data Masking (Ultimate only)
  6. SQL Migration (Ultimate only)
  7. IntelliShell Script Tasks (Basic, Pro and Ultimate)

Studio 3T must be running at the scheduled time in order for any scheduled task to run.

Download the latest Studio 3T version and automate your first task.

Open Tasks

  1. Go to the Studio 3T global toolbar and click on the Tasks button.
  2. This will open up the Tasks dialog, which provides an overview of all previously-saved tasks.
Work with MongoDB Tasks in the Studio 3T Tasks tab
The Tasks button and tab

Create a task

To create a task, click on the New Task button. This will open the New Task dialog:

The New Task button

The dialog displays all the possible types of tasks you can create:

Select the type of Task you want to run against MongoDB
Selecting a New Task type

Select the task type and click OK. This will close the current dialogs and trigger the appropriate tab – depending on the task type – where you can continue to configure and save the task.

Here are the links to the relevant documentation:

  • Import Wizard
  • SQL to MongoDB Migration
  • MongoDB to SQL Migration
  • Data Compare and Sync
  • Export Wizard
  • Data Masking
  • Reschema
  • IntelliShell

Save a task

On top of each task tab is a toolbar with three buttons:

Each MongoDB Task describes itself in its tab
The Task tools
  • Save task – Saves the task with its current name, or prompts the user to name it if it wasn’t saved yet.
  • Save task as – Prompts the user to name the task and save it.
  • Load task – Load the current task with the configuration of an existing saved task.
  • Schedule – Set a schedule for automated execution of the task.
  • Run – Executes the current configuration.

It is not possible to save or execute a partially configured task.

After saving the task, it will be visible in the Task Overview dialog:

See an overview of your MongoDB Tasks
The Task Overview

Execute a task

  1. Select any number of tasks in the Task Overview dialog.
  2. Click the Run button, or right-click on the task(s) and choose Run. Studio 3T will then execute the task with the saved configuration.

You can track the progress of import jobs in the Operations panel. For Data Compare & Sync jobs, a Comparison Results tab will automatically open.

Find a task

You can search for and filter your saved tasks in the Task Overview dialog using the search bar on top.

Filter your MongoDB Tasks with the search field
Filtering Tasks by searching

Edit a task

  1. Select any number of entries in the Task Overview dialog.
  2. Click the Edit button, or right-click on the task(s) and choose Edit. This will bring up the corresponding tab, filled with the saved configuration.
Edit your MongoDB Task with the edit button, menu item or shortcut
Edit a Task through the menu

Clone a task

  1. Choose any number of entries in the Task Overview dialog.
  2. Click the Clone button, or right-click on the task(s) and select Clone. A copy will be created for each selected Task, under the name “Copy of <task name>”.
Clone your MongoDB Task with the edit button, menu item or shortcut
Cloning a Task makes a full copy of the Task ready for you to modify

Delete a task

  1. Choose any number of tasks in the Task Overview dialog.
  2. Click on the Delete button, or right-click on the task(s) and press Delete. The user will asked to confirm the deletion, after which the tasks will be deleted.
Delete your MongoDB Task with the edit button, menu item or shortcut
Tasks can be deleted from the right-click menu, shortcut or delete button

Schedule MongoDB tasks

Tasks, can be run on demand, or you can schedule jobs to be executed automatically at specified times.

In order to trigger the scheduled task, Studio 3T must be running at the scheduled time, otherwise the task won’t be run.

To schedule a task, open the Task Overview dialog.

Double-click in the Schedule cell of the target task. This cell is initially empty, meaning that the task hasn’t been scheduled.

This will open the Task schedule editor, which allows you to schedule the task.

Setting the Recurrence field allows you to select a range of scheduling options. Whatever you select in the editor will be explained in the Schedule Summary:

Once

You can choose to run the task once at a set time in the future:

The Once Schedule
The Once Schedule

Daily

Daily at a specific time:

The Daily Schedule
The Daily Schedule

You can also optionally set a date for when this schedule stops being run.

Every

Runs the task every number of minutes or hours specified in the time interval field.

The Every Schedule
The Every Schedule

You can also specify a date and time when this repeated execution starts and optionally a date and time when it stops.

Weekly

Runs the task on specified days of the week (not just once a week) at a specified time of the day.

The Weekly Schedule
The Weekly Schedule

You can also specify a date when this weekly execution starts and optionally a date when it stops.

Monthly

Runs tasks on specific days of the month (not just once a month) and at a particular time of the day.

The Monthly Schedule
The Monthly Schedule

You can also specify a date when this monthly schedule starts and optionally a date when it stops.

Custom

Combining all the above scheduling options, the Custom recurrence allows for executions on days of the week, or of the month, or both. When scheduled, the task can be run once or repeated at a particular hourly/minute rate over a period of time during that day.

The Custom Schedule
The Custom Schedule

The custom schedule can also be started on a specific date and optionally be stopped on a different date.

Configure the schedule as desired and click Save. The task is now scheduled to run:

Schedules for MongoDB Tasks shown in the overview
How Schedules are shown in the Tasks Overview

Check out Studio 3T’s other time-saving features:

  • SQL Query – Use SQL to query MongoDB and see how it translates to the MongoDB query language
  • Import Wizard + Export Wizard – Import/export in various formats, without writing a single command
  • Aggregation Editor – Write MongoDB aggregation queries in stages

How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

Ricardo Pires

Ricardo spends his time building new and exciting features for Studio 3T. In his free time, he enjoys a bunch of nerdy hobbies such as playing videogames and learning the sax.

Article navigation

Related articles

  • How Do I Stop My Tasks Prompting For Database Passwords? #Studio3T_AMA
  • What’s New In Studio 3T 2022.5 – Load Tasks, Shell Progress, JSON Toolbar
  • IntelliShell Script Tasks
  • What’s New In Studio 3T 2022.8 – IntelliShell Script Tasks and Enhanced Value Searches
  • AMA: How can Studio 3T’s Tasks make me more efficient?

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2023 3T Software Labs Ltd. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum

We value your privacy

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data.

By clicking “Accept all”, you consent to the storage of cookies and the processing of personal data for these purposes, including any transfers to third countries. By clicking on “Decline all”, you do not give your consent and we will only store cookies that are necessary for our website. You can customize the cookies we store on your device or change your selection at any time - thus also revoking your consent with effect for the future - under “Manage Cookies”, or “Cookie Settings” at the bottom of the page. You can find further information in our Privacy Policy.
Accept all
Decline all
Manage cookies
✕

Privacy Preference Center

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in our Privacy Policy.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Google Analytics

Google Ads

Bing Ads

Facebook

LinkedIn

Quora

Hotjar

Reddit

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

HubSpot

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected