FaaSr / FaaSr-package

Function-as-a-Service package for R
https://faasr.io
Other
4 stars 8 forks source link

Add logging functions to faasr_client_tools.R #82

Closed nanmu08 closed 5 months ago

nanmu08 commented 7 months ago

Add logging functions to faasr_client_tool.R

after calling faasr function: faasr_invoke <- faasr(json_path="payload.json", env=".env")

by calling faasr_invoke$get_log_df() will generate a txt file to list all log files

by calling faasr_invoke$get_log("a_uuid_string") to download log files in that uuid folder

by calling faasr_invoke$delete_log("a_uuid_string") to delete that uuid folder

by calling faasr_invoke$delete_log_date("2024-04-15") , when pass a date as argument, will delete all files before that date.

spark0510 commented 6 months ago

Checked May 20: It works well! Thank you!

nanmu08 commented 5 months ago

update faasr_client_tool.R for fixing “origin” error and time correction(for example: a div.txt last modified date is April 15, 2024, 21:46:58 , but it shows "April 16, 2024, 01:46:58"). Tested in local enviornment and Docker container enviornment.

spark0510 commented 5 months ago

It's working okay - retrieve time for EDT