Skip to content

Rapid deployment

Now that you’ve tested your step locally, it’s time to deploy to the pinexq.net server!

While the template main.py is on the root level of your project directory, this isn’t necessary, as the previous example suggests. However, in order to deploy your new step, you will need to edit pinexq.toml to point to it. For example:

pinexq.toml
[project]
name = "test-project"
pinexq_endpoint = "jobs.api.pinexq.net"
entrypoint = "src/small_step.py"
[deployment]
resource_preset = "Small"
max_replicas = 1

To deploy your step, you then can run the following in your project’s root directory:

Terminal window
foo@bar: ~/my_project$ uvx --from pinexq-cli@latest deploy --api-key="<PINEXQ_API_KEY>"

The CLI will then use the Dockerfile to build a worker, then upload it to our servers. Note that this upload can only happen once for a given function:version combination; if you need to re-upload your Step (e.g. due to a typo), you will need to either delete the existing function on your portal, or change the version.

On the Portal, under Processing Steps, you should now see your processing step, as well as any others made available to you. Your processing steps

Since your step takes file input, your next step is to upload your WorkData file. Uploading workdata

Finally, navigate to Jobs, and “Create job”. You will then be able to name your test job, and assign it your ProcessingStep. Creating a job

Don’t start it yet! Leave “Start immediately” unchecked, and click “Create”. You will then be able to navigate to your job’s details.

On the job’s page, scroll down and configure the inputs and parameters of your Step. Configuring a job

When you’re ready, scroll back up and click the “play button” to start. Starting a job

In less than a minute, your job will finish, and you can view the result down below (or in Workdata).

Our low-code workflow configurator lets you configure workflows with a minimum of coding knowledge. Using it, you can simply click and drag to “glue together” different steps.

First, drag out a DataExplicit from the toolbar at the bottom, and configure it to use your input file. Then, drag in a ProcessingStep, configure its parameters, and connect it. You can connect several instances of your step together. Try it! Your first workflow

Next, save your work, then click “Publish.”

Finally, go to the workflow explorer and try running it! Starting a workflow