Skip to content
Discussion options

You must be logged in to vote

The Arc and Inventory objects are intentionally deep-frozen, so unfortunately that path is not available to you. My suggestion would be to create your @scheduled functions conditionally via the set.scheduled API. Return nothing in !production, and return the stuff you want to deploy in prod.

One note: Arc's set APIs do not have a stage parameter, so use inventory.inv._arc.deployStage to infer the intended stage. deployStage will be null when local (e.g. run in Sandbox).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@taphill
Comment options

Answer selected by taphill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants