Run Normal Sync on the Tenant
Trigger and verify a normal sync for your Pandium tenant to send Slack “Pokémon of the Day” messages and confirm tenant metadata is passed between successive runs.
Before you can try out your new normal sync you will need to put your tenant on a new release based on your new code. To do that follow all the steps in the Check the Customized Connection Settings Page.
Once your tenant is on that new release, navigate to your integration's tenant by clicking Integrations from the side bar > the Unpublished tab > the card for your Pokémon of the Day integration > the Tenants tab > the row for your tenant.

Click the arrow on Sync Now > Normal Sync. This will kick off a normal sync for your tenant, which will appear in the Runs list at the bottom of the page. Before the run is complete you should get a Slack message about the Pokémon of the Day.

Click the icon in the run's Status column. This will display the Run Detail page for the run.
The log there should look just like the logs for the normal syncs you ran locally during development.
The last line of the log should be the standard out and it should look something like this:
Now that the run has succeeded, Pandium has validated that standard out against your metadata_schema and saved it as the tenant's metadata. You can take a look at it:
Navigate back to the Tenant Detail page by clicking the tenant's name at the top of the Run Detail page.
Click the Details tab and click Show next to Tenant Metadata. You should see
{"last_pokemon_id": 1}.
To confirm that metadata is correctly being passed from one run to the next, start another normal sync.
Click the arrow on Sync Now > Normal Sync. Before the run is complete you should get a Slack message about a different Pokémon of the day.
Locate the run in the Run list at the bottom of the Tenant Detail page, and click on the icon in the run's Status column. This will display the Run Detail page for the run.
The log in the Run Detail page should be very similar to the last run but take note of a few things:
Near the start of the run you should find
The last Pokémon of the day was #1. Notice that this matches the metadata saved by the tenant's last normal sync.The last line of the log should be the standard out, and its ID should be greater than the last one:
[OUT] {"last_pokemon_id":2}.
Back on your machine, run
pandium local build && pandium local run <tenant-id>one more time. The CLI pulls down the tenant's current metadata, so this local run should logThe last Pokémon of the day was #2and send you a message about Pokémon #3.
Now that you've seen your code runs correctly on a Pandium tenant you just need to change the tenant's schedule so it runs on a daily basis!
Last updated
Was this helpful?