Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
Empty file added mock_work_generator.py
Empty file.
33 changes: 33 additions & 0 deletions s3tutorial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from http import client
import os
import boto3
import botocore.exceptions as ClientError

access_key = '...'
access_secret = '...'
bucket_name = '...'


# Connect to S3 Server

client_s3 = boto3.client(
's3',
aws_access_key_id = access_key,
aws_secret_access_key = access_secret
)

# Upload Files to S3 bucket

for file in os.listdir(...):
if not file.startswith('~'):
try:
client_s3.upload_file(

)

except ClientError as e:
print('Credential is incorrect')
print(e)

except Exception as e:
print(e)
11 changes: 11 additions & 0 deletions work_generator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Work Generator Experiment Tasks
Work generator should add a job type to all future jobs and future proof dockets documents and comments and the new job type called attachments

## Data/Redis
* Redis stores stuff in memory but it remembers it by rwriting to a dumb.rdb
* If restart redis if it finds dump then it reloads to memory
* If we can somehow write to a redis database redis writes a dump.rdb manually put it in ~data/redis next time system starts
* It will load those values into memory and achieve goal

# Program
* Write a program that will generate jobs and put it into a redis database