Skip to content

Instantly share code, notes, and snippets.

@aleemstreak
Created October 18, 2012 19:37
Show Gist options
  • Save aleemstreak/3914314 to your computer and use it in GitHub Desktop.
Save aleemstreak/3914314 to your computer and use it in GitHub Desktop.
Queue queue = QueueFactory.getQueue("macheQueue");
TaskOptions t = TaskOptions.Builder.withUrl("/_ah/datastore_admin/backup.create");
t.param("name", backupName);
for (String kind : kindsToExport) {
t.param("kind", kind);
}
t.param("filesystem", "gs");
t.param("gs_bucket_name", bucketName);
t.method(Method.GET);
t.header("Host", BackendServiceFactory.getBackendService().getBackendAddress(AH_BUILTIN_PYTHON_BUNDLE));
queue.add(t)
@husayt
Copy link

husayt commented Oct 2, 2013

Hi @aleemstreak, did you manage to get this working? I tried various combinations of the above but it ends up going to the default version, where it returns 404, rather than to AH_BUILTIN_PYTHON_BUNDLE.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment