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

Improve UX for the lambda workflow (upload and lambda) #323

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resctl-bench: lambda: add error log if file was already submitted
Add an error log line to improve debugging and traceability in the AWS
lambda logs.

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
  • Loading branch information
Ricardo Cañuelo committed Oct 29, 2024
commit 0a793d86e16c3ff85dc4f5563e4b026f42264546
1 change: 1 addition & 0 deletions resctl-bench/src/lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub async fn run() -> Result<()> {
let object_name = helper.object_name_from_hash(&data)?;

if helper.s3_object_exists(&object_name).await? {
error!("File {} has already been submitted", object_name);
return Ok(Response {
issue: None,
error_type: Some(format!("Custom")),
Expand Down