Skip to content
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

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

TyMarc
Copy link
Contributor

@TyMarc TyMarc commented Nov 20, 2024

No description provided.

@TyMarc TyMarc requested a review from markkasaboski November 20, 2024 16:41
@TyMarc TyMarc self-assigned this Nov 20, 2024
@TyMarc TyMarc force-pushed the mahinse/run_cron_job_post_configuration branch 3 times, most recently from acc6673 to cb59201 Compare November 20, 2024 17:16
Comment on lines 129 to 148
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}`,
}
);
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

@markkasaboski markkasaboski left a 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.

@TyMarc TyMarc force-pushed the mahinse/run_cron_job_post_configuration branch from cb59201 to 6db9e17 Compare November 20, 2024 19:48
@TyMarc TyMarc force-pushed the mahinse/run_cron_job_post_configuration branch from 6db9e17 to af22b0a Compare November 20, 2024 19:48
@TyMarc TyMarc merged commit 9524b14 into main Nov 20, 2024
2 checks passed
@TyMarc TyMarc deleted the mahinse/run_cron_job_post_configuration branch November 20, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants