Closed ronanrodrigo closed 2 years ago
Adding this to my project the table started to being populated
public func configure(_ app: Application) throws {
// ...
if config.scheduleStatisticsJobs {
// ...
try app.queues.startScheduledJobs()
}
// ...
}
I found some other stuffs... On routes.swift
the try app.queues.startInProcessJobs(on: .default)
and on xcmetrics-jobs-deployment.yaml
this:
command: ["./XCMetricsBackend",
"queues",
"--env",
"production"]
But even running the command above, nothing happens. There is any documentation about the workers/schedulers?
Hi. You need to start the process with
command: ["./XCMetricsBackend",
"queues",
"--scheduled",
"--env",
"production"]
It will run every day and create the statistics_day_counts
table.
I will add documentation about this.
@ecamacho thanks!
I am trying get values from
DailyStatisticsJob
at/v1/statistics/build/count?days=14
but thestatistics_day_build_time
table is empty. And while debugging theXCMetricsBackendLib/Config/configure.swift
there isn't a call tostartScheduledJobs()
or similar across the project.I am missing where it is being called? Or there is other way to start the scheduled jobs?