Hi dev,

I'd like to raise a discussion to un-deprecate Trigger.Once in future
releases.

I've proposed deprecation of Trigger.Once because it's semantically broken
and we made a change, but we've realized that there are really users who
strictly require the behavior of Trigger.Once (only run a single batch in
whatever reason) despite the semantic issue, and workaround with
Trigger.AvailableNow is arguably much more hacky or sometimes not even
possible.

I still think we have to advise using Trigger.AvailableNow whenever
feasible, but deprecation  of Trigger.Once confuses users that the trigger
won't be available sooner (though we rarely remove public API). So maybe
warning log on usage sounds to me as a reasonable alternative.

Thoughts?

Thanks,
Jungtaek Lim (HeartSaVioR)

Reply via email to