forked from eppye-bots/bots
-
Notifications
You must be signed in to change notification settings - Fork 2
ChannelFileLock
skilchen edited this page Feb 17, 2016
·
1 revision
- ERP writes an in-house file; bots starts to read this before the file is completely written.
- Bots writes file over FTP, but file is read before Bots finishes writing. Bots provides some options in channels to handle this.
-
Tmp-part file name: bots writes a filename, than renames the file. Example 1. In channel: filename is "myfilename_*.edi.tmp",
- tmp-part is ".tmp"
- Bots writes: "myfilename_12345.edi.tmp"
- Bots renames: "myfilename_12345.edi"
-
System lock: use system file locks for reading or writing edi files (windows, *nix).
-
Lock-file: Directory locking: if lock-file exists in directory, directory is locked for reading/writing. Both eader and writer should check for this.
[Home]
- Get started with bots
- Guide for bots-monitor
- Configuration
- How to debug
- Plugins
- Deployment and usage
- Advanced Deployment
- Troubleshooting FAQ
- Overview
- Changes and migrate
- Tutorials
- New to python?
- External reference links
- Useful Tools