-
Notifications
You must be signed in to change notification settings - Fork 25
Push catalog info after the checks #804
Push catalog info after the checks #804
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dottorblaster ,
Thanks! Unfortunately this will add some overload to the checks execution, but well it is what it is. Hopefully in the future we can add some kind of logic to the runner to get commands from the web itself (or we might even remove the runner at all, who knows hehe).
I recommend that once we add the metadata execution in the loop, we could remove the initial execution (line 87), so we only execute meta and checks within the loop. And I would execute the metadata and checks in this order.
runner/runner.go
Outdated
return | ||
} | ||
|
||
checkRunner.RunPlaybook() | ||
|
||
if err = metaRunner.RunPlaybook(); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the order a bit strange. Shouldn't we run and publish the catalog information before running the checks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree on the order, I moved it on top!
0c42ef5
to
1a6644d
Compare
@arbulu89 100% agree about the order of events, about the removal of the first run on boot I honestly don't know, because I prefer to run this also at the boot to ensure the user doesn't see an empty screen for too long at first. What do you think? |
@dottorblaster I agree with running this on boot. Considering the expansion of the catalog checks and the time it takes to run, I see as natural that the execution frequency will become longer (hourly, eventually daily), so the first execution populates the initial status. |
I don't think removing this would change anything. This is the current logic:
If we remove the first |
@arbulu89 I was assuming that the first tick executed after the first interval, sorry about that 😅 I just noticed that the first tick runs immediately. I'm going to remove the first call then 😄 |
1a6644d
to
1b2faa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dottorblaster ! Here we go!!!
Right now if the database goes bananas we don't repopulate the table containing the catalog data. This PR attempts to address the issue making that happen after the checks ran.