Queue-based file processing system for FTP/SFTP servers (v5.7.1). Uses Kue (Redis-backed) to monitor upload directories, enqueue files, and process them with user-defined callbacks. Supports multiple FTP configurations, file format filtering, and concurrency control. Differentiates itself by combining FTP monitoring with job queue management, handling file state transitions (upload → enqueued → processing → processed/error). Stable but infrequently updated. Requires Redis and Kue as peer dependencies.
npm install ftp-management-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup that monitors an FTP directory, enqueues CSV files, and processes them with a custom callback that runs for 10 seconds.
Create a fresh options object for each FtpManagementQueue call.
Use Bull with 'ftp-management-queue' wrapper or switch to a different queue-based FTP processor.
Use path.resolve(__dirname, 'relative/path') or absolute paths.
If you need XML processing, stay on v4.x or handle XML parsing in customCallback.
Ensure Redis is installed and running. Use queue.client for advanced configuration.
Ensure processNames.manager and processNames.processor are defined as non-empty strings.
Make sure to bind the job context or reference 'this.job' correctly (see README snippet).
Start Redis server: 'redis-server' or set via environment variable REDIS_URL.
Create all required directories (upload, enqueued, processing, error, processed, backup) before starting.