{"id":50467490,"url":"https://github.com/podaac/generate_partition_submit","last_synced_at":"2026-06-01T08:02:48.313Z","repository":{"id":103454526,"uuid":"592516947","full_name":"podaac/generate_partition_submit","owner":"podaac","description":"Partitions Generate workflow data and submits AWS Batch jobs.","archived":false,"fork":false,"pushed_at":"2026-04-12T21:11:09.000Z","size":173,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-12T22:25:48.948Z","etag":null,"topics":["development","generate"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/podaac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-23T22:25:31.000Z","updated_at":"2026-04-12T21:11:12.000Z","dependencies_parsed_at":"2023-10-17T00:00:51.095Z","dependency_job_id":"9ebd1be5-329f-429f-9384-349a127ccc4b","html_url":"https://github.com/podaac/generate_partition_submit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/podaac/generate_partition_submit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podaac%2Fgenerate_partition_submit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podaac%2Fgenerate_partition_submit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podaac%2Fgenerate_partition_submit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podaac%2Fgenerate_partition_submit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/podaac","download_url":"https://codeload.github.com/podaac/generate_partition_submit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podaac%2Fgenerate_partition_submit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33765379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","generate"],"created_at":"2026-06-01T08:02:44.173Z","updated_at":"2026-06-01T08:02:48.299Z","avatar_url":"https://github.com/podaac.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parition \u0026 submit\n\nPartitions download list creator text files in AWS Batch jobs (which contain available OBPG downloads) and then submits all Generate worfklow jobs to AWS Batch (downloader -\u003e combiner -\u003e processor -\u003e upload).\n\nPartition \u0026 Submit also maintains a holding tank of refined SST files. If it detects any unmatched refined SST files it stores them in a JSON file organized by date and hour in the `download-lists` S3 bucket: `holding_tank/{aqua|terra|viirs}`. It then loads any refined SST files older than a specified threshold and submits them as a part of the Generate workflow. The threshold is speficied in the config file.\n\nTop-level Generate repo: https://github.com/podaac/generate\n\n## pre-requisites to building\n\nNone.\n\n## build command\n\n`docker build --tag partition_submit:0.1 . `\n\n## execute command\n\nArguments:\n- Taken from event that triggers AWS Lambda (download list creator publishes to SQS queue).\n\nMODIS A: \n`docker run --rm --name ps`\n\nMODIS T: \n`docker run --rm --name ps`\n\nVIIRS: \n`docker run --rm --name ps`\n\n**NOTES**\n- In order for the commands to execute the `/?/` directories will need to point to actual directories on the system.\n- The job config file is hosted in an AWS S3 Bucket that the component loads into memory to create and submit AWS Batch jobs.\n\n## aws infrastructure\n\nThe partition and submit component includes the following AWS services:\n- AWS Lambda function.\n- AWS S3 bucket to hold input text files and job config file.\n- AWS SQS queue to allow the publication of the list of text files.\n- AWS SQS queue to track pending AWS jobs from previous runs.\n- AWS SSM parameters to track the number of available IDL licenses.\n\n## terraform \n\nDeploys AWS infrastructure and stores state in an S3 backend using a DynamoDB table for locking.\n\nTo deploy:\n1. Edit `terraform.tfvars` for environment to deploy to.\n2. Edit `terraform_conf/backed-{prefix}.conf` for environment deploy.\n3. Initialize terraform: `terraform init -backend-config=terraform_conf/backend-{prefix}.conf`\n4. Plan terraform modifications: `terraform plan -out=tfplan`\n5. Apply terraform modifications: `terraform apply tfplan`\n\n`{prefix}` is the account or environment name.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodaac%2Fgenerate_partition_submit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpodaac%2Fgenerate_partition_submit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodaac%2Fgenerate_partition_submit/lists"}