Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk into 400mb pulls #18

Closed
brookesy2 opened this issue Feb 14, 2013 · 8 comments
Closed

Chunk into 400mb pulls #18

brookesy2 opened this issue Feb 14, 2013 · 8 comments
Assignees

Comments

@brookesy2
Copy link

I know this is the longest of the long shots, but any possibility in the future of being able to pull from orgs that hit the 400mb metadata API limit by chunking the pulls out?

The error just in case :)

/usr/share/solenopsis/ant/util/sfdc-util.xml:613: Failed to process the request successfully. Cause(LIMIT_EXCEEDED): LIMIT_EXCEEDED: The retrieved zip file exceeded the limit of 419430400 bytes.

@ghost ghost assigned sfloess Feb 15, 2013
@sfloess
Copy link
Member

sfloess commented Feb 15, 2013

Need ability to denote which Type (maybe dirs) require separate pulls. Should then iterate over them - but be sure to exclude them from the end pull (which will be a pull the rest minus them en-mass).

@sfloess
Copy link
Member

sfloess commented Feb 15, 2013

Should consider if a property is set, do a chunk pull...otherwise a full pull.

@sfloess
Copy link
Member

sfloess commented Feb 15, 2013

Consider catching the exception and if caught denote how to do chunking pulls.

@brookesy2
Copy link
Author

That would be pretty helpful i think (the catch and then ask) Because potentially you could just pull custom objects or standard objects, which should reduce the amount by a fair bit. I guess its probably not as common to have 400mb of Apex code. Whatever is easiest to do for you though!

@brookesy2
Copy link
Author

Was thinking last night, one thing with a prompt is if you want to automate pulls with CI/cron it may mess that up :(

@sfloess
Copy link
Member

sfloess commented Feb 16, 2013

I don't think prompting is the correct solution more so than emitting an error message on corrective action. And to your point, that wouldn't scale to a CI environment :)

I'll likely code this such that its no harder to chunk objects vs classes. By this I mean, I envision a property that denotes whats chunkable as a space delimited list.

@brookesy2
Copy link
Author

That seems like an excellent solution :) Gives a lot of flexibility!

@sfloess
Copy link
Member

sfloess commented Mar 19, 2013

I'll denote a property with default values of all the types. I'm going to also define two new macrodefs and targets:

  • selective-pull
  • selective-pull-to-master

If the above are called I'll either use the default value or whatever is specified.

Also, I will iterate over each doing retrieves for each.

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

No branches or pull requests

2 participants