Installation and Usage
Last updated
Was this helpful?
Last updated
Was this helpful?
The application to be developed will connect to Omnitron as an application and use the user information defined in that application.
In the scenario to be tested in the local environment, the application can be tested without preparing the ACC application by using Omnitron user information. Once the necessary developments are considered ready, the application can be deployed and tested in the application server environment (ACC).
After creating the application on the Acc side, in the project to be used, the + New Application button is used to select the developed application, and the Install button is clicked. The channel and catalog are automatically created in the brand's Omnitron.
This documentation is prepared for Ubuntu-based operating systems.
Once the below steps are completed, everything required for the system will be ready.
Install Python
Copy Project and Install Dependencies
Install Celery and Flower
Trigger Tasks via Flower
If the Python version is 3.8 or higher, it is sufficient for the Channel App Template project.
If Python is not installed or your version is outdated, you can complete the Python installation with apt commands. First, it is recommended to run the apt install
command. If it cannot find the version, you can proceed with add-apt-repository
and then install it again with apt install
. If your system's apt can access the package you are looking for, there is no need to add a new ppa
in this way.
The necessary packages to the system are installed by using apt commands. These packages consist of Python package manager pip, version control tool Git, task server Celery, and Redis for Celery's broker requirements.
The project is copied to the local system. Since git performs the cloning process in the currently active folder in the terminal, it is recommended to navigate to the preferred project folder before running the command.
You can install the necessary packages for the project with an active virtual environment.
Let's run Celery worker processes. User information and some environment variables will have different values for your environment.
MAIN_APP_URL: Omnitron URL, excluding the protocol.
OMNITRON_CHANNEL_ID: ID of the sales channel to which the application will connect.
OMNITRON_CATALOG_ID: Catalog ID of the connected sales channel.
By default, the Redis server remains active after installation, especially if it is not shut down. You can test it with the ping
command and shut it down using redis-server
command.
Flower is a web-based tool used to view and manage tasks related to Celery. If you do not have regular running jobs to manage or you are using an alternative tool, the installation of Flower is not mandatory.
To install Flower, you need to export some environment variables. Instead of exporting these values individually each time, you can save them in the .env file as KEY=VALUE and then use the command to export them all at once.
Flower also allows triggering predefined tasks. To trigger tasks, the example curl request is as follows:
If the request is successful, it returns the following response with a 200 status code:
The task-id parameter in the response can be used to query the status of the triggered task via the Flower panel.
To avoid conflicts between dependencies of different projects, it is recommended to use a virtual environment. You can visit for virtual environment installation.
Celery is an open-source, asynchronous task queue or job queue based on distributed message passing. While it primarily focuses on real-time task processing and execution, it can also manage scheduled tasks. For more information, visit .