Skip to content

Commit

Permalink
Change Job Time (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Sep 22, 2024
1 parent 07eb8b1 commit f801fbd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cloudsensei/azure/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def get_long_running_instances(self):
'time_created': instance.time_created.strftime('%Y-%m-%d %H:%M:%S'),
'region': instance.location,
'instance_type': instance.hardware_profile.vm_size,
'status': self.__azure_operations._get_instance_status(resource_group, instance.name)
'status': self.__azure_operations._get_instance_status(resource_group, instance.name),
'running_days': running_days,
}
long_running_instances.append(instance_resource)
long_running_instances.sort(key=lambda x: (x['region'], x['resource_group']))
Expand Down Expand Up @@ -183,7 +184,7 @@ def organize_message_to_send_slack(self, resources_list: list):
return slack_message_block


@app.schedule(schedule="0 0 18 * * * ", arg_name="myTimer", run_on_startup=True,
@app.schedule(schedule="0 30 12 * * * ", arg_name="myTimer", run_on_startup=False,
use_monitor=False)
def monitor_resources(myTimer: func.TimerRequest) -> None:
process_instances = ProcessInstances()
Expand Down

0 comments on commit f801fbd

Please sign in to comment.