Athento allows monitoring instance executions according to their type.
To count these executions, run the increment_executions method, passing as a parameter the type of execution whose counter you want to increment. Optionally, you can also indicate the number of executions to add. If this value is not specified, the counter will be incremented by 1.
from health.utils.utils import increment_executions
increment_executions('bulk_download')
increment_executions('bulk_update', 7) # Passing the amount to increment
When this method is executed, executions of that type are counted in cache. At the moment when the number of cached executions exceeds the value configured in the PERSIST_NUMBER_EXECUTION_LOG_EXECUTION_TIMES setting, the count is persisted and, from then on, you can consult it in the “Executions monitor” section of the instance’s “Global Admin Console” section.
In this section you can see the available information about the different types of executions in the instance.
Currently, you can view the data filtered by date with these options:
- Last week
- Last month
- Last year
In addition, using the dropdown next to the chart, you can select which lines you want to display to focus on the relevant information when you need it.
If there is a plan configured on the instance, it is also possible to see a chart that compares total executions with the maximum number of executions contracted in the plan.
For now, this chart always shows the last 4 months.