You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to know where i can get Id of current CronTicker inside the TickerFunction.
This Cron job may be created with Dashboard, not from code, so i may can't not store the CronId in somewhere else to reuse inside the TickerFunction.
[TickerFunction("Abc_XYZ")]
public async Task StartAsync(TickerFunctionContext context)
{
var id = context.Id; // This is OcurrenceId, not CronTickerId
// How to delete the parent cron ticker inside this method.
var cronTickerId = null; // Where can i find this one, if i use dashboard to create a cron job?
if (runEnough)
{
await _cronTickerManager.DeleteAsync(cronTickerId);
return;
}
// Do and track
DoingIt();
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to know where i can get Id of current CronTicker inside the TickerFunction.
This Cron job may be created with Dashboard, not from code, so i may can't not store the CronId in somewhere else to reuse inside the TickerFunction.
Beta Was this translation helpful? Give feedback.
All reactions