Skip to content

Commit

Permalink
Updated vars for cron schedule (#3895)
Browse files Browse the repository at this point in the history
* Updated vars for cron schedule

* Update main.yml
  • Loading branch information
raghupathiguduri authored Sep 19, 2023
1 parent 408c8c4 commit d6c6875
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/ml-analytics-service/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,8 @@ ml_analytics_reports_store: "{{ cloud_service_provider }}"
ml_analytics_reports_container: "{{ cloud_storage_privatereports_bucketname }}"
ml_analytics_driver_memory: "{{ ml_analytics_default_driver_memory | default('5g') }}"
ml_analytics_executor_memory: "{{ ml_analytics_default_executor_memory | default('5g') }}"
ml_analytics_batch_cron_minute: "{{ ml_batch_cron_minute | default('30') }}"
ml_analytics_batch_cron_hour: "{{ ml_batch_cron_hour | default('18') }}"
ml_analytics_nvsk_cron_minute: "{{ ml_nvsk_cron_minute | default('30') }}"
ml_analytics_nvsk_cron_hour: "{{ ml_nvsk_cron_hour | default('7') }}"
ml_analytics_nvsk_cron_weekday: "{{ ml_nvsk_cron_weekday | default('4') }}"
11 changes: 6 additions & 5 deletions ansible/roles/ml-analytics-service/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- python3-virtualenv
- zip
- unzip
- acl
state: present

- name: CHANGE THE OWNERSHIP FOR THIS {{ BASEPATH }} DIRECTORY
Expand Down Expand Up @@ -135,15 +136,15 @@
cron:
name: "Run Batch Ingestion Job"
user: "{{ USER }}"
minute: "30"
hour: "18"
minute: "{{ ml_analytics_batch_cron_minute }}"
hour: "{{ ml_analytics_batch_cron_hour }}"
job: "{{ BASEPATH }}/ml-analytics-service/run.sh > {{ BASEPATH }}/ml-analytics-service/crontab_job.log"

- name: CREATE THE CRON NVSK Data Upload
cron:
name: "NVSK Data Upload JOB"
user: "{{ USER }}"
minute: "30"
hour: "7"
weekday: "4"
minute: "{{ ml_analytics_nvsk_cron_minute }}"
hour: "{{ ml_analytics_nvsk_cron_hour }}"
weekday: "{{ ml_analytics_nvsk_cron_weekday }}"
job: "{{ BASEPATH }}/ml-analytics-service/run_weekly.sh > {{ BASEPATH }}/ml-analytics-service/nvsk_data_weekly.logs"

0 comments on commit d6c6875

Please sign in to comment.