Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
postgre_ftp_clean_up
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
postgre_ftp_clean_up
Commits
a1ddf97c
Commit
a1ddf97c
authored
May 12, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
7c80bbd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
README.md
README.md
+6
-2
clean_up.py
clean_up.py
+1
-1
No files found.
README.md
View file @
a1ddf97c
...
...
@@ -2,6 +2,10 @@
This utility can be used to display/delete the list of files which should be deleted in FTP as they are alredy processed
How to Run it:
1.
To Command to get the list of all files in WPM folder or IO folder or MODBUS folder in FTP is:
a. python clean_up.py find
|Command|
|-------|
|python clean_up.py find|
2.
To Command to Delete files in WPM folder or IO folder or MODBUS folder in FTP is:
b. python clean_up.py delete
|Command|
|-------|
|python clean_up.py delete|
clean_up.py
View file @
a1ddf97c
...
...
@@ -17,7 +17,7 @@ __console_handler = StreamHandler(sys.stdout)
__console_handler
.
setFormatter
(
__formatter
)
logger
.
addHandler
(
__console_handler
)
check_for_n_hours
=
int
(
os
.
environ
.
get
(
'check_for_n_hours'
,
default
=
'6
0
'
))
check_for_n_hours
=
int
(
os
.
environ
.
get
(
'check_for_n_hours'
,
default
=
'6'
))
THREAD_POOL_LIMIT
=
os
.
environ
.
get
(
"THREAD_POOL_LIMIT"
,
default
=
10
)
FTP_HOST
=
os
.
environ
.
get
(
"FTP_HOST"
,
default
=
"hfe-ftp.ilens.io"
)
FTP_USER
=
os
.
environ
.
get
(
"FTP_USER"
,
default
=
"ilenshero1"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment