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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 BUG] Cannot delete a job with job_selector #1400

Closed
1 of 2 tasks
FlorianJacta opened this issue Jun 12, 2024 · 0 comments 路 Fixed by #1461
Closed
1 of 2 tasks

[馃悰 BUG] Cannot delete a job with job_selector #1400

FlorianJacta opened this issue Jun 12, 2024 · 0 comments 路 Fixed by #1461
Assignees
Labels
Core Related to Taipy Core 馃柊 GUI Related to GUI 馃啒 Help wanted Open to participation from the community 馃挜Malfunction Addresses an identified problem. 馃煣 Priority: High Must be addressed as soon

Comments

@FlorianJacta
Copy link
Member

FlorianJacta commented Jun 12, 2024

What went wrong? 馃

There is an icon to delete a job in the job selector. This icon does nothing, but the job seems to be deleted. (in the .taipy)

Expected Behavior

The deletion should be seen in the job_selector.

Steps to Reproduce Issue

Submit the scenario and delete the job

# Import necessary libraries
import pandas as pd
import taipy as tp
from taipy import Config, Scope, Frequency

import datetime as dt


# Function to run a Dataiku scenario
def run_something(input_1, input_2):
    datetime = dt.datetime.now()
    date = dt.date(2018, 1, 1)
    int_var = 10
    string_var = "String"
    return datetime, date, int_var, string_var


data = {"toto": [i for i in range(10_000)], 
        "titi": [2*i for i in range(10_000)],
        "tata": [4*i for i in range(10_000)]}



input_1_cfg = Config.configure_data_node(
    id="input_1_data_node",
    default_data=data,
)


input_2_cfg = Config.configure_data_node(
    id="input_2_data_node",
    default_data=data,
)

datetime_cfg = Config.configure_data_node(id="datetime_data_node")
date_cfg = Config.configure_data_node(id="date_data_node")
int_cfg = Config.configure_data_node(id="int_data_node")
string_cfg = Config.configure_data_node(id="string_data_node")


# Scenario and task configuration in Taipy
scenario_task_cfg = Config.configure_task(
    id="scenario_task",
    function=run_something,
    input=[input_1_cfg, input_2_cfg],
    output=[datetime_cfg, date_cfg, int_cfg, string_cfg]
)

scenario_cfg = Config.configure_scenario(
    id="scenario",
    task_configs=[scenario_task_cfg],
    frequency=Frequency.DAILY)

data_node = None

# GUI Markdown content
scenario_md = """
<|1 1|layout|
<|{scenario}|scenario_selector|>

<|{scenario}|scenario|>
|>

<|{scenario}|>


<|job_selector|>

<|1 1|layout|
Input 1 Dataset:
<|{scenario.input_1_data_node if scenario else None}|data_node|>

Input 2 Dataset:
<|{scenario.input_2_data_node if scenario else None}|data_node|>
|>


<|1 1|layout|
<|{data_node}|data_node_selector|>

<|{data_node}|data_node|>
|>
"""

# Main execution block with GUI setup
if __name__ == "__main__":
    tp.Core().run()
    scenario = tp.create_scenario(scenario_cfg)
    scenario.add_tag("test")
    # Run the GUI
    tp.Gui(scenario_md).run(title="Bug replication", port=3248)

Version of Taipy

develop - 6/12/24 (M/D/Y)

Code of Conduct

  • I have checked the existing issues.
  • I am willing to work on this issue (optional)
@FlorianJacta FlorianJacta added 馃挜Malfunction Addresses an identified problem. 馃柊 GUI Related to GUI 馃煣 Priority: High Must be addressed as soon labels Jun 12, 2024
@jrobinAV jrobinAV added Core Related to Taipy Core 馃啒 Help wanted Open to participation from the community labels Jun 14, 2024
@FredLL-Avaiga FredLL-Avaiga self-assigned this Jun 28, 2024
FredLL-Avaiga pushed a commit that referenced this issue Jun 28, 2024
FredLL-Avaiga added a commit that referenced this issue Jun 28, 2024
* refresh job_selector on job deletion
resolves #1400

* be more precise

---------

Co-authored-by: Fred Lef茅v猫re-Laoide <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to Taipy Core 馃柊 GUI Related to GUI 馃啒 Help wanted Open to participation from the community 馃挜Malfunction Addresses an identified problem. 馃煣 Priority: High Must be addressed as soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants