Basic operations¶ This section answers some common questions you may have following the Quickstart guide (see Quickstart). Find a correct place for your app Instantiate your connector What kind of Connector should I use? How to instantiate a connector? Environment Data Source Name (DSN) Connection arguments Other arguments Custom connection pool Initiate and terminate the connection to the database Explicitly open and close the app Open and close the app with a context manager Use an external pool instead of the connectors default pool Define a task Defer a job The direct way With parameters Create a job pattern, launch multiple jobs Defer a job if you can’t access the task From the command line Launch a worker … Inside an application Use the command line Define your app Logging Running on Windows