1234567891011 |
- def publish_file(args, pub_name, meta):
- """ This task will process file downloaded via FileMonitor """
- pub = models.Publisher.objects.get(name=pub_name)
- full_path, monitor_id = args
- if full_path:
- monitor = models.FileMonitor.objects.get(id=monitor_id)
- upload = move_upload(pub, full_path, monitor.name, meta)
- run_pub_scripts(pub, upload)
-
|