diff --git a/_sql/actions_and_analytics/w2l/top_w2l_users.sql b/_sql/actions_and_analytics/w2l/top_w2l_users.sql new file mode 100644 index 0000000000..d318870d73 --- /dev/null +++ b/_sql/actions_and_analytics/w2l/top_w2l_users.sql @@ -0,0 +1,13 @@ +-- Top w2l users +select + distinct maybe_creator_user_token, + count(*) as creations, + u.username, + u.email_address, + u.maybe_stripe_customer_id, + u.created_at +from w2l_inference_jobs w +left outer join users u + on u.token = w.maybe_creator_user_token +group by maybe_creator_user_token +order by creations desc diff --git a/crates/service/job/email_sender_job/src/main.rs b/crates/service/job/email_sender_job/src/main.rs index 917113f48e..94aec35d8e 100644 --- a/crates/service/job/email_sender_job/src/main.rs +++ b/crates/service/job/email_sender_job/src/main.rs @@ -47,18 +47,6 @@ pub mod http_server; pub mod job; pub mod job_dependencies; -// Buckets (shared config) -const ENV_ACCESS_KEY : &str = "ACCESS_KEY"; -const ENV_SECRET_KEY : &str = "SECRET_KEY"; -const ENV_REGION_NAME : &str = "REGION_NAME"; - -// Bucket names -const ENV_PRIVATE_BUCKET_NAME : &str = "PRIVATE_BUCKET_NAME"; -const ENV_PUBLIC_BUCKET_NAME : &str = "PUBLIC_BUCKET_NAME"; - -// HTTP sidecar -const ENV_TTS_INFERENCE_SIDECAR_HOSTNAME: &str = "TTS_INFERENCE_SIDECAR_HOSTNAME"; - #[actix_web::main] async fn main() -> AnyhowResult<()> {