We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd7cf65 commit 75a33ebCopy full SHA for 75a33eb
taskqueue_cli/taskqueue_cli.py
@@ -61,3 +61,22 @@ def status(queuepath):
61
def release(queuepath):
62
"""Release all tasks from their leases."""
63
TaskQueue(normalize_path(queuepath)).release_all()
64
+
65
+@main.command()
66
+@click.argument("src")
67
+@click.argument("dest")
68
+def copy(src, dest):
69
+ """
70
+ Copy the contents of a queue to another
71
+ service or location.
72
73
+ src = normalize_path(src)
74
+ dest = normalize_path(dest)
75
76
+ tqd = TaskQueue(dest)
77
+ tqs = TaskQueue(src)
78
79
+ tqd.insert(tqs)
80
81
82
0 commit comments