Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Conversation

pavolpluta
Copy link
Contributor

No description provided.

import datetime

# Replace with correct path
FILE_PATH = 'testdir/test.csv'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to change it? Does it have to be hardcoded in this script?
I would prefer reading some environment variable, or reading a special config file, consuming a request parameter or something similar.

current_time = datetime.datetime.now()

# Replace with correct time limit
time_limit = datetime.timedelta(hours=2, minutes=30)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, how the parameter will be passed?

# Replace with correct time limit
time_limit = datetime.timedelta(hours=2, minutes=30)

with open(FILE_PATH) as f:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should mention the expected format of the file contents.

@@ -0,0 +1,29 @@
#!/usr/bin/python3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vyskocilpavel We need to decide the final version of the sync output and how the probe should respond.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants