[feature-request] enable to using (next_/ last_)run_time in workflows definition
See original GitHub issueHi team. Thank you for your developments.
I want to use some variables, current_run_time
, next_run_time
, last_run_time
, are related to scheduled time, and they don’t mean session_time
.
In follow workflow definition, we can’t refer to the schedule time.
timezone: UTC
schedule:
daily> 06:00:00
+session_time:
echo>: ${session_time}
echo>: ${session_time}
outputs first time of the day, ex) 2018-09-05 00:00:00
.
And we can’t refer to the time when execute the task.
I think also need to consideration about naming of these variables.
If you like my idea, I want develop the feature. So please help me to do the task. Best regards.
p.s The other day, in Twitter, I discussed with @hiroyuki-sato about same topic, please refer to following url. ( Sorry, in Japanese) https://twitter.com/hiroysato/status/1036568808385728512
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Re-running workflows and jobs - GitHub Docs
When you re-run a specific job in a workflow, a new workflow run will start for the job and any dependents. Any outputs...
Read more >Workflows | Temporal Documentation
The Workflow Versioning feature enables the creation of logical branching inside a Workflow Definition based on a developer specified version identifier.
Read more >Schedule and run recurring workflows - Azure Logic Apps
To start and run your workflow on a schedule, you can use the generic Recurrence trigger as the first step. You can set...
Read more >Understand Workflows | Google Cloud
Parallel steps: You can use a parallel step to define a part of your ... Callbacks allow workflow executions to wait for another...
Read more >What is Workflow Automation and Why is it Important?
This means they do not require extensive understanding of programming to use. Instead, they have drag-and-drop features that let users automate workflows within ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@onunu As a result of my research, I think it is very difficult to get some datetimes which are related with schedule.
In the Digdag data structure(Database Schema), there is no any relations between
tasks
andschedules
. So when the task is executed, the tasks cannot know whether the task is scheduled or not. So task cannot get informations about schedulers when the task is executed. Digdag scheduler process just submits the task with following each schedule.schedules
table has columns ofnext_runtime
,next_schedule_time
, andlast_session_time
on the table. I think these informations are what you need.So, as a workaround, if you want to get these informations, you can execute http request to Digdag api
/api/projects/:id/schedules
directly and get them.You can see the Digdag api endpoints list which are related with schedule here or here
And , if you want to share same value(e.g. a datetime when a task is finished) between different tasks, we are developing new operators
param_set>
andparam_get>
. These operators enable to save and read persistent data in DataStore(e.g. PostgreSQL, Redis). https://github.com/treasure-data/digdag/pull/845I’ ll close this issue, because I understand the followings.