-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger the cron job right after the first configuration #54
Conversation
acc6673
to
cb59201
Compare
async function updateEventIngestionCronJobInterval( | ||
service: SplunkService, | ||
intervalInSeconds: number | ||
): Promise<void> { | ||
await updateConfigurationFile( | ||
service, | ||
'inputs', | ||
'script://$SPLUNK_HOME/etc/apps/flare/bin/cron_job_ingest_events.py', | ||
{ | ||
interval: `${intervalInSeconds}`, | ||
} | ||
); |
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 wonder if we should put a retry mechanism in here should the request fail for whatever reason.
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.
it might be worth it even if the requests are running locally, wouldn't do it in this PR though.
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.
A couple of questions. Looks good otherwise.
cb59201
to
6db9e17
Compare
6db9e17
to
af22b0a
Compare
No description provided.