Services and jobs
Qubix does a lot of work in the background on a schedule: it collects statistics, syncs data with the tracker, checks domains, sends notifications. This screen shows the state of every background job, lets you open the page of any of them and — for those whose role allows it — run a job right now. The help note of the row — the question mark in the window — says: Background services of the server. “Needs attention” lists services whose last run ended with an error; they leave it on their own after a successful run. Below are “All services” by section. Clicking a row opens the service: schedule, last run and duration, “Run” out of turn (with the “Run background jobs” permission; for some services only an administrator gets this button) and, for an administrator, “How often to run”; clicking “Services and jobs” on the left again returns to the list. “Log…” shows the run history of all services.
What the screen offers you depends on your role. The last section of this article lists every difference.
The job list
At the top is the section name, Services and jobs; for those who may read the history the window also has the tabs Services and Logs. Under the name stands a line with the counts: … jobs and … healthy · … failing — in place of the dots, how many jobs finished their last run without an error and how many with one. The counts appear after the list has been read. The alarm is carried by the dots of the rows below. To the right of the same line sits the Log… button — it opens the run history.
The jobs themselves are laid out in blocks:
- Needs attention stands above everything else and appears only when some job's last run ended in an error. A job lands in this block after a failed run and leaves it on its own as soon as it finishes without an error — the block says exactly that under itself: A job lands here after a failed run and leaves on its own once it finishes without an error.
- All services holds every job, split by area: "Monitoring", "Advertising", "Domains and sites" and others. The areas come from the server together with the job list; a job that belongs to no area goes to Other at the end. The server sends the names, areas and descriptions of the jobs in the language of your profile if it is Russian or English. Otherwise it sends them in Russian or English: whichever comes first in your browser's language list, and if neither is there, in English. What the main jobs do is described in the Background jobs reference.
There is no table on this screen. Each job is a single row:
- on the left, a dot — how the last run ended: green when it finished without an error, red after an error, gray when the job has not run yet or its tick was skipped. While the job is running, the dot pulses;
- the name, and under it a single line of "how often · what the job does" — for example, for the "Host self-monitor" job:
5m · Watches disk, memory, swap and load; warns in Telegram when a threshold is crossed. How often is written in words: Every minute, Every … min, Every hour, Every … hours, Once a day, Every … days and, for any other interval, Every …; - on the right, an arrow. The whole row is clickable and opens the page of that job.
The page of one job
A click on a row replaces the list with the page of the chosen job. The Back button above the header takes you back to the list.
The header repeats the name and the "how often · what it does" line, and carries the buttons: View last log shows the output of the last run, Run runs the job right now. Each of them appears only together with its own permission, and View last log additionally needs the job to have run at least once: with nothing to show, there is no button.
Below the header is the Schedule group:
- Status — how the last run ended: OK, ERROR or Skipped (a tick Qubix deliberately held back — for example, when the feature is not part of your plan), with the same dot as in the list;
- Interval — how often the job runs on schedule;
- Last Run — when it last ran, in your time zone;
- Duration — how long that run took.
An administrator also gets one more group — What you can configure: the settings of this particular service, and among them How often to run, the only control that changes a job's schedule by hand.
Settings of a service
The group What you can configure on a job's page opens with the schedule control How often to run. For a job that runs on a schedule of its own it is a field for a whole number of minutes with the unit min next to it, and under the name stands an explanation: How often the service runs automatically. Default … min, minimum … min — running more often is pointless. For a service with an upper bound the explanation is How often the service runs automatically. Default … min, allowed from … to … min. It may not run less often than every … min: this service does work that has a deadline, and a longer gap would make it arrive too late — it would not slow down, it would stop working. The line under the field reads Interval between automatic runs. Minimum … min. or Interval between automatic runs. From … to … min. A value outside the bounds is not an error: Qubix saves the nearest allowed one and says so — Saved as … min — that's the minimum allowed. or Saved as … min — that's the maximum allowed. A value that is not a whole number of minutes is not sent: Enter a whole number of minutes. The same goes for the numeric settings below: Enter a whole non-negative number.
A service that runs every minute, aligned to the clock, has no field: the group shows Runs every minute (fixed), and the explanation says This service runs once per minute, aligned to the clock. The interval is fixed and can't be changed — its scheduled tasks need minute-by-minute precision. A service with neither settings nor a schedule control says This service has no settings yet. The page of a service has the ← To services link at the top.
Each setting stands as a row with its name and a short explanation under it. The settings that exist today:
Britva rule engine
Limits for the rules that call fetch and sql while the engine passes over the ads:
- fetch: default timeout, ms — Default per-call fetch timeout for a rule that doesn't set one.
- fetch: max timeout, ms — Ceiling — a rule can't set a fetch timeout above this.
- fetch: max body, bytes — Cap on the fetch response body size in a rule.
- fetch: max calls per tick — How many fetch calls are allowed in one Britva tick — one budget for the rules of buyers and teams and a separate equal one for the global rules — and in one run of the rule test. The host gate is the global fetch allowlist.
- SQL: queries per tick — How many distinct sql`...` queries rules may run in one Britva pass. Identical queries across ads are served from cache and don't count against this. Once exceeded, sql throws.
- SQL: rows per query — Cap on rows returned by a single sql`...` in a rule. Beyond it the result is truncated (with a warning in the log).
- SQL: time budget per tick, ms — Aggregate ceiling on total sql`...` time per pass. Once reached, new queries are rejected — guarantees a Britva pass never hangs.
- SQL: query timeout, ms — Time limit for one sql`...` query, counted on the database side. A slow query is stopped by the server.
- SQL: rule timeout, ms — Timeout for a rule that uses sql`...`, fetch or ctx.state (instead of the usual 50 ms), both in the real cycle and in the rule test. Needed because those calls are synchronous and can't be interrupted instantly.
- Test: overall run deadline, ms — Overall deadline for one dry-run of a draft rule from the “Test” button. When it expires the sweep over ads stops and the panel shows how many ads were evaluated. 0 — no deadline.
Parse Facebook profiles
-
FB: per-profile request gap, ms — Minimum gap between Facebook requests on one browser profile. Shared across the parser, Britva and system scripts: at most one request per interval per profile — guards against the "too fast" block. 0 disables it.
-
What counts as a click — Which Facebook click is recorded into your stats. CTR, CPC and click→reg depend on it. The list names the kinds of click as Facebook names them, and under the list each one has a note:
- How many distinct people left Facebook for your site. The most accurate real-traffic metric. Default.
- All clicks leaving Facebook for your site, including repeat clicks by the same person.
- Distinct people who clicked the ad link. Also includes links inside Facebook (Messenger, events).
- All clicks on the ad link, including destinations inside Facebook.
- Distinct people who clicked the ad anywhere: link, like, photo, page.
- Any click on the ad: link, like, reaction, page visit. The broadest count.
- How many times people waited for your site to fully load (requires a Facebook pixel). The strictest count — excludes those who clicked but never arrived.
Page posts sync
- Post sync — Collecting fan page posts and their data. Turning this off stops the whole service: both post collection and comment cleanup.
- Comment cleanup — Auto-removal of comments under fan page posts and ad creatives. Can be turned off on its own — posts keep being collected.
Data freshness watch
- Report a broken watch after, min — How many minutes the watch has to stay broken before a separate message about it is sent. It can break in two ways and both share this hold: it either cannot find out whether data are arriving, or cannot read what it remembered from its previous check. Either way it decides nothing and sends neither the "data stopped arriving" alarm nor the notice that they are back. The run itself is marked failed from the very first miss and shows up on the Services page: the setting governs the message, not the colour, so a one-off hiccup makes no noise. The same number also decides when an incident counts as over, with a margin: to be back for real, the freshness check must work for TWICE that long without a break — otherwise a short recovery and the next failure count as the same incident and earn no second message. The margin exists for a flapping database: while the two dwells were equal, a database failing and recovering by turns closed the incident for us and earned a fresh message again and again — on the standard schedule and this default, once an hour. The other failure has no such window; it ends on the first successful read. Default 15 minutes: on the standard schedule (every 15 minutes) that is the second failure in a row. 0 — write on the first miss.
VirusTotal domain check
- Domain checks per day — How many times a day we may ask VirusTotal about our domains. Default 450 — comfortably under the free tier's 500 requests a day, leaving room for the “Test key” button in Credentials. One pass spends a share of it, so the allowance is spread across the day instead of burning in the first pass. A domain that does not fit is not lost: the next pass starts with whoever went unchecked the longest. 0 turns the domain check off.
Proxy recheck
- Internal networks for proxies, mail, postbacks and task import — By default the server does not connect to addresses that are not reachable from the internet — your own network, the loopback, the cloud metadata address — when it checks a proxy, connects a mailbox, sends an email, sends a postback to a traffic source, imports tasks from Jira or YouTrack, or a script calls fetch. List here the internal networks it may reach anyway: separated by commas, each entry either an address (10.0.0.5) or a network (10.0.0.0/8). Empty — no internal address is allowed, which is how an unconfigured server works. One list serves the whole server: mail, postbacks, task import, the scripts' fetch and every proxy check use it, not only this job. See Internal networks below.
TeleQube
- Keep chat on this installation — Chat with calls runs as a stack of its own — the chat server, its database and the media server — and takes several gigabytes of memory. Switch it off if the machine is small and you do not need chat: the stack will not come up even if your plan allows it. Leaving it on does not open chat by itself — the plan still has to allow it. The help note of the row — the question mark in the window — says: One setting — “Keep chat on this installation”. Turn it off and the TeleQube server will not be started here; turning it off does not remove a server that is already running. Turned on, it only permits the server — whether it starts also depends on the license. “Save” writes the change; an administrator sees and changes this setting.
Internal networks
On the page of the "Proxy recheck" job, this group holds the Internal networks for proxies, mail, postbacks and task import setting. By default the server does not connect to addresses that cannot be reached from the internet — your own network, the loopback address, the cloud metadata address. In this field you list the internal networks it may reach after all: separated by commas, each entry an address (10.0.0.5) or a network (10.0.0.0/8). An empty field forbids internal addresses entirely — this is how a server that has not been configured works.
There is one list for the whole server: all proxy checks, the outgoing postbacks to traffic sources, the task import from a Jira or YouTrack server at an internal address and the fetch calls of scripts work by it, not only this job. For fetch the server itself counts as internal too — its loopback and its own addresses, including the external one: a script reaches them only if their network is in this list (with the outbound route through Tor a name is resolved by Tor, and the external address is then reached from outside, like any visitor). If some of the entries could not be read, the rest keep working, and an alert with the reason arrives in the technical Telegram channel. If not a single entry could be read, the list does not work, and all internal addresses are refused — an alert about this arrives too.
How to run a job manually
- Open Services and jobs.
- Find the job in the list and click its row.
- On the job's page click Run.
- While the job runs, the dot next to its name pulses and the button is unavailable. When it finishes, the screen takes you to the run history — if the history is open to you. Otherwise you stay on the job's page, and the outcome appears in the Status line.
The Run button appears only when your role carries the Run background jobs permission; without it there is no such button anywhere on this screen. Some jobs are additionally reserved for the administrator — their button is shown to an administrator only, even when the permission is in the role.
A manual run is useful when you need fresh data right away and there is no time to wait for the scheduled tick. It does not affect the schedule itself.
The run history
The Log… button in the list header opens the history of all background job runs. Four columns: Started, Job, Message and Duration. The message is what the run itself reported; a run with no messages leaves this field empty. Above the table there is the Refresh button, which re-reads the history; the table has no search line and no filters, as everywhere in the settings. A click on a row opens the full log of that run; when the run printed nothing, the log says No log output. Jobs in the history are named the same way as in the list; a job that is no longer in the list appears in the history under its internal name.
The Back button above the table takes you back to the job list.
What your role changes
- The run history — the Log… button and the table behind it — needs your role to have the Events section's Sees column set to All teams. Without that neither is shown, and a direct link to the history opens the job list. What the runs printed — the text in the Message column, the log a click on a row opens, and the View last log button on a job's page — is shown to an administrator only; anyone else sees in that column just the outcome of a failed or skipped run.
- The Run button needs the Run background jobs permission. Jobs reserved for the administrator need administrator rights on top of that.
- The What you can configure group on a job's page is open to an administrator only.
- The list itself, its blocks and the Schedule group are visible to everyone who can open this screen.